Skip to content

Commit

Permalink
ontload handle case where SciGraph folder exists but is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed Dec 10, 2019
1 parent f38aa82 commit a18de95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyontutils/ontload.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def scigraph_build(zip_location, git_remote, org, git_local, branch, commit,

if not os.path.exists(local):
repo = Repo.clone_from(remote + '.git', local)
elif not Path(local, '.git').exists():
repo = Repo.clone_from(remote + '.git', local)
else:
repo = Repo(local)

Expand Down

0 comments on commit a18de95

Please sign in to comment.