Skip to content

Commit

Permalink
Auto merge of #4024 - rsertelon:fix-4016-fetch-only-master, r=alexcri…
Browse files Browse the repository at this point in the history
…chton

Fetch only master branch of the registry index

Should close #4016
  • Loading branch information
bors committed May 10, 2017
2 parents 7bbc807 + dd1fd16 commit 58fe1a8
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 58fe1a8

Please sign in to comment.