Skip to content

Commit 41ecd2e

Browse files
dtrifiropmrowla
authored andcommitted
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 33b3afa commit 41ecd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dvc/scm.py

+1-1
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)