xontrib-powerline
xontrib-powerline copied to clipboard
Bug: existence of curr_branch is assumed as a git repo
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.