Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
split refs into push/pull Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQBm103z5dh++JOyBCMXCicQiLPphTcT5UU9imqNZvUS6F/VKNLyhmOfVzBdDIyq+hf pes3xuyUS0/Hf5JwG4owI= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
1 week ago
1 changed files, 11 additions(+), 5 deletions(-)
apps/nogui/nushell/git-bug.nu
M apps/nogui/nushell/git-bug.nuapps/nogui/nushell/git-bug.nu
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/apps/nogui/nushell/git-bug.nu b/apps/nogui/nushell/git-bug.nu
index d8316ea4c8a06f1e918b2b84bc41f1d7ff8a5c86..aa1fa662d624ef6b8e20cb5c37c63b2fad1d963b 100644
--- a/apps/nogui/nushell/git-bug.nu
+++ b/apps/nogui/nushell/git-bug.nu
@@ -1,15 +1,21 @@
 export def "git bug init" [] {
-  ^git config --add remote.origin.fetch "refs/bugs/*:refs/bugs/*"
-  ^git config --add remote.origin.fetch "refs/identities/*:refs/identities/*"
-  ^git config --add remote.origin.push "refs/bugs/*:refs/bugs/*"
-  ^git config --add remote.origin.push "refs/identitites/*:refs/identities/*"
-  ^git fetch
+  git bug pull
   let id = ^git-bug user -f json | from json | where name == 'jolheiser' | get -i human_id.0
   if ($id | is-not-empty) {
     ^git-bug user adopt $id
   } else {
     ^git-bug user new --name 'jolheiser' --email 'git@jolheiser.com' --avatar 'https://www.libravatar.org/avatar/cc498b605dee7b6fb9e6422332691bb4'
   }
+}
+
+export def "git bug pull" [] {
+  ^git fetch origin refs/bugs/*:refs/bugs/*
+  ^git fetch origin refs/identities/*:refs/identities/*
+}
+
+export def "git bug push" [] {
+  ^git push origin refs/bugs/*:refs/bugs/*
+  ^git push origin refs/identities/*:refs/identities/*
 }
 
 def "bug-id" [] {