xontrib-powerline icon indicating copy to clipboard operation
xontrib-powerline copied to clipboard

Bug: existence of curr_branch is assumed as a git repo

Open BYK opened this issue 7 years ago • 0 comments

I'm using both Git and Mercurial and getting fatal: Not a git repository error when I'm inside Mercurial repos. Looks like the reason is https://github.com/santagada/xontrib-powerline/blob/master/xontrib/powerline.xsh#L67 assuming curr_branch always being a Git repository, which is not the case.

I'm willing to submit a PR to fix this.

BYK avatar Jan 25 '18 16:01 BYK