Skip to content

Commit

Permalink
Merge pull request #271 from pelson/new_feedstocks_functions
Browse files Browse the repository at this point in the history
Change the default clone URL to the GitHub recommendation.
  • Loading branch information
pelson authored Aug 24, 2016
2 parents 08a73a5 + 05a6ba3 commit bef307d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conda_smithy/feedstocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ def clone_feedstock(feedstock_gh_repo, feedstocks_dir):
clone_directory = os.path.join(feedstocks_dir, repo.name)
if not os.path.exists(clone_directory):
print('Cloning {}'.format(repo.name))
new_repo = Repo.clone_from(repo.ssh_url, clone_directory)
new_repo = Repo.clone_from(repo.clone_url, clone_directory)
clone.delete_remote('origin')
clone = Repo(clone_directory)
if 'upstream' in [remote.name for remote in clone.remotes]:
clone.delete_remote('upstream')
clone.create_remote('upstream', url=repo.ssh_url)
clone.create_remote('upstream', url=repo.clone_url)


def clone_all(gh_org, feedstocks_dir):
Expand Down

0 comments on commit bef307d

Please sign in to comment.