Skip to content

Commit

Permalink
Merge pull request #35 from HebaruSan/fix/clone-from
Browse files Browse the repository at this point in the history
Clone repo normally
  • Loading branch information
techman83 authored Sep 20, 2019
2 parents a9ae2d0 + 78a778d commit e5735d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions netkan/netkan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ def init_repo(metadata, path):
clone_path = Path(path)
if not clone_path.exists():
logging.info('Cloning {}'.format(metadata))
clone_path.mkdir(parents=True)
repo = Repo.init(clone_path)
repo.create_remote('origin', metadata)
repo.remotes.origin.pull('master:master')
repo = Repo.clone_from(metadata, clone_path)
else:
repo = Repo(clone_path)
return repo
Expand Down

0 comments on commit e5735d3

Please sign in to comment.