diff --git a/apps/nogui/nushell/git-bug.nu b/apps/nogui/nushell/git-bug.nu index aa1fa662d624ef6b8e20cb5c37c63b2fad1d963b..d8316ea4c8a06f1e918b2b84bc41f1d7ff8a5c86 100644 --- a/apps/nogui/nushell/git-bug.nu +++ b/apps/nogui/nushell/git-bug.nu @@ -1,21 +1,15 @@ export def "git bug init" [] { - git bug pull + ^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 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" [] {