Skip to content

Commit

Permalink
Fetch only master branch of the registry index
Browse files Browse the repository at this point in the history
Should close #4016
  • Loading branch information
rsertelon committed May 10, 2017
1 parent 7bbc807 commit dd1fd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'cfg> RegistryData for RemoteRegistry<'cfg> {

// git fetch origin
let url = self.source_id.url().to_string();
let refspec = "refs/heads/*:refs/remotes/origin/*";
let refspec = "refs/heads/master:refs/remotes/origin/master";

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

0 comments on commit dd1fd16

Please sign in to comment.