Skip to content

Commit 450e322

Browse files
author
Chris Proto
committed
gitpython-developers#130 Split on all whitespace, not just space char
1 parent 0b820e6 commit 450e322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _get_ref_info(cls, repo, ref_path):
127127
fp = open(join(repo.git_dir, ref_path), 'r')
128128
value = fp.read().rstrip()
129129
fp.close()
130-
tokens = value.split(" ")
130+
tokens = value.split()
131131
except (OSError,IOError):
132132
# Probably we are just packed, find our entry in the packed refs file
133133
# NOTE: We are not a symbolic ref if we are in a packed file, as these

0 commit comments

Comments
 (0)