jhillyerd / plugin-git

Git aliases plugin for the Fish shell (similar to oh-my-zsh git)
MIT License
607 stars 85 forks source link

Fix: Error when init.defaultBranch isn't set #62

Closed novadev94 closed 3 years ago

novadev94 commented 3 years ago

Fix a bug caused by https://github.com/jhillyerd/plugin-git/pull/61

❯ git checkout (__git.default_branch)
fatal: --verify requires a reference
Already on 'master'
Your branch is up to date with 'origin/master'.
jhillyerd commented 3 years ago

Nice, thank you. Seems like we need to add some unit tests to catch this sort of thing, I don't have time to test all PRs by hand, including this one.