bigH / git-fuzzy

interactive `git` with the help of `fzf`
MIT License
2.3k stars 42 forks source link

Make the remote HEAD symbolic ref optional #17

Closed leighmcculloch closed 4 years ago

leighmcculloch commented 4 years ago

What

Make the remote HEAD symbolic ref optional and default the base branch to master when it is not present.

Why

In some cases the symbolic ref can be lost and the scripts print out errors about that repeatedly. For most operations though it has no impact. Defaulting to master which is the most common default branch of git repos should catch some of the cases where it is needed and the ref was lost. It might be ideal to leave it as an empty string though in those cases.

Related to #13 although I do not think this addresses the core issues people are reporting there.

bigH commented 4 years ago

Nicely done!