improve test coverage for git submodules

This commit is contained in:
Alan Hamlett 2017-11-23 12:26:57 -08:00
parent 1d57270daf
commit 0ca8a936db
3 changed files with 155 additions and 70 deletions

View file

@ -123,6 +123,6 @@ class Git(BaseProject):
subpath = line[len('gitdir: '):].strip()
if os.path.isfile(os.path.join(path, subpath, 'config')) and \
os.path.isfile(os.path.join(path, subpath, 'HEAD')):
return os.path.join(path, subpath)
return os.path.realpath(os.path.join(path, subpath))
return None