From 803963af1550d2604d49266c9ec7e1beef235c58 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 28 Jun 2014 21:45:08 +0400 Subject: [PATCH] Fix git symlink handling --- powerline/lib/vcs/git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/powerline/lib/vcs/git.py b/powerline/lib/vcs/git.py index a8b36aea..27a1e71a 100644 --- a/powerline/lib/vcs/git.py +++ b/powerline/lib/vcs/git.py @@ -80,9 +80,10 @@ class GitRepository(object): return self.do_status(self.directory, path) def branch(self): - head = os.path.join(git_directory(self.directory), 'HEAD') + directory = git_directory(self.directory) + head = os.path.join(directory, 'HEAD') return get_branch_name( - directory=self.directory, + directory=directory, config_file=head, get_func=branch_name_from_config_file, create_watcher=self.create_watcher,