branch is now shown correctly (not b'branchname' anymore)

master
Martin Gondermann 13 years ago
parent 6f4c272200
commit 8a2060598b
  1. 4
      gitstatus.py

@ -17,7 +17,7 @@ error_string = error.decode('utf-8')
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')
@ -67,7 +67,7 @@ if remote == "":
out = '\n'.join([
str(branch),
remote,
str(remote),
staged,
conflicts,
changed,

Loading…
Cancel
Save