Skip to content

Commit

Permalink
branch is now shown correctly (not b'branchname' anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmonty committed Dec 15, 2012
1 parent 6f4c272 commit 8a20605
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
if 'fatal: Not a git repository' in error_string:
sys.exit(0)

branch = branch.strip()[11:]
branch = branch.decode('utf-8').strip()[11:]

res, err = Popen(['git','diff','--name-status'], stdout=PIPE, stderr=PIPE).communicate()
err_string = err.decode('utf-8')
Expand Down Expand Up @@ -66,8 +66,8 @@
remote = '.'

out = '\n'.join([
str(branch),
remote,
str(branch),
str(remote),
staged,
conflicts,
changed,
Expand Down

0 comments on commit 8a20605

Please sign in to comment.