Commit d99e4f15 by James Cammarata

Merge pull request #9220 from jlaska/devel

Resolve issue where repo_path contains multiple '.git' strings
parents 8ac4a844 68435292
......@@ -845,7 +845,7 @@ def _git_repo_info(repo_path):
if os.path.isabs(gitdir):
repo_path = gitdir
else:
repo_path = os.path.join(repo_path.split('.git')[0], gitdir)
repo_path = os.path.join(repo_path[:-4], gitdir)
except (IOError, AttributeError):
return ''
f = open(os.path.join(repo_path, "HEAD"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment