Skip to content

Commit eeba35c

Browse files
committed
scm: fix clone
`fetch_all_exp()` in `clone()` was called with `url="origin"`, which resulted in the operation being performed with the remote URL defined in the cloned repo's config, which did not include any credentials initially provided to clone. Fixes #7670
1 parent 1cc803d commit eeba35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dvc/scm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def clone(url: str, to_path: str, **kwargs):
144144
try:
145145
git = Git.clone(url, to_path, progress=pbar.update_git, **kwargs)
146146
if "shallow_branch" not in kwargs:
147-
fetch_all_exps(git, "origin", progress=pbar.update_git)
147+
fetch_all_exps(git, url, progress=pbar.update_git)
148148
return git
149149
except InternalCloneError as exc:
150150
raise CloneError(str(exc))

0 commit comments

Comments
 (0)