|
|
|
|
@ -89,6 +89,8 @@ for st in status: |
|
|
|
|
if st[0] == '#' and st[1] == '#': |
|
|
|
|
if re.search('Initial commit on', st[2]): |
|
|
|
|
branch = st[2].split(' ')[-1] |
|
|
|
|
elif re.search('No commits yet on', st[2]): |
|
|
|
|
branch = st[2].split(' ')[-1] |
|
|
|
|
elif re.search('no branch', st[2]): # detached status |
|
|
|
|
branch = get_tag_or_hash() |
|
|
|
|
elif len(st[2].strip().split('...')) == 1: |
|
|
|
|
@ -150,4 +152,3 @@ if python_version == 2: |
|
|
|
|
Print(out.encode('utf-8')) |
|
|
|
|
else: |
|
|
|
|
Print(out) |
|
|
|
|
|
|
|
|
|
|