Fix error when inside a bare git repository
For example, "git diff" would print "fatal: this operation must be run in a work tree" We could still run git_branch_name in bare repositories in future.
Showing
Please register or sign in to comment