Skip to content

Commit

Permalink
scm: fix clone
Browse files Browse the repository at this point in the history
`fetch_all_exp` was being invoked with url set to "origin", which caused
any credentials in the provided url to be ignored

Fixes iterative#7670
  • Loading branch information
dtrifiro committed May 13, 2022
1 parent dc1d3e8 commit bb65cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def clone(url: str, to_path: str, **kwargs):
try:
git = Git.clone(url, to_path, progress=pbar.update_git, **kwargs)
if "shallow_branch" not in kwargs:
fetch_all_exps(git, "origin", progress=pbar.update_git)
fetch_all_exps(git, url, progress=pbar.update_git)
return git
except InternalCloneError as exc:
raise CloneError(str(exc))
Expand Down

0 comments on commit bb65cc5

Please sign in to comment.