Skip to content

Commit 58fe1a8

Browse files
committed
Auto merge of #4024 - rsertelon:fix-4016-fetch-only-master, r=alexcrichton
Fetch only master branch of the registry index Should close #4016
2 parents 7bbc807 + dd1fd16 commit 58fe1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/sources/registry/remote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<'cfg> RegistryData for RemoteRegistry<'cfg> {
9797

9898
// git fetch origin
9999
let url = self.source_id.url().to_string();
100-
let refspec = "refs/heads/*:refs/remotes/origin/*";
100+
let refspec = "refs/heads/master:refs/remotes/origin/master";
101101

102102
git::fetch(&repo, &url, refspec, self.config).chain_error(|| {
103103
human(format!("failed to fetch `{}`", url))

0 commit comments

Comments
 (0)