mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-01-03 11:22:15 +01:00
Faulty clone code made it possible to run gitinspector in sub-directories.
This resulted in undefined behavior. The base directory was being incorrectly defined when cloning did not occur.
This commit is contained in:
parent
ba1c3341fe
commit
9f336e63ce
1 changed files with 2 additions and 2 deletions
|
@ -116,10 +116,10 @@ def __get_validated_git_repos__(repos_relative):
|
|||
#Try to clone the repos or return the same directory and bail out.
|
||||
for repo in repos_relative:
|
||||
cloned_repo = clone.create(repo)
|
||||
basedir_path = basedir.get_basedir_git(cloned_repo.location)
|
||||
|
||||
if cloned_repo.name == None:
|
||||
cloned_repo.name = os.path.basename(basedir_path)
|
||||
cloned_repo.location = basedir.get_basedir_git(cloned_repo.location)
|
||||
cloned_repo.name = os.path.basename(cloned_repo.location)
|
||||
|
||||
repos.append(cloned_repo)
|
||||
|
||||
|
|
Loading…
Reference in a new issue