improve test coverage for git submodules
This commit is contained in:
parent
1d57270daf
commit
0ca8a936db
3 changed files with 155 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue