Skip to content

Commit

Permalink
fix: assure refs can be reet when fetching to support squashing.
Browse files Browse the repository at this point in the history
Previously tests didn't replicate this, now they do.
  • Loading branch information
Byron committed Aug 30, 2022
1 parent ed4ba38 commit cdcac41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/diff/mod.rs
Expand Up @@ -64,7 +64,7 @@ impl Index {
repo.find_remote("origin").and_then(|mut r| {
r.fetch(
&[format!(
"refs/heads/{branch}:refs/remotes/origin/{branch}",
"+refs/heads/{branch}:refs/remotes/origin/{branch}",
branch = self.branch_name
)],
options,
Expand Down

0 comments on commit cdcac41

Please sign in to comment.