Skip to content

Commit cdcac41

Browse files
committed
fix: assure refs can be reet when fetching to support squashing.
Previously tests didn't replicate this, now they do.
1 parent ed4ba38 commit cdcac41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index/diff/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Index {
6464
repo.find_remote("origin").and_then(|mut r| {
6565
r.fetch(
6666
&[format!(
67-
"refs/heads/{branch}:refs/remotes/origin/{branch}",
67+
"+refs/heads/{branch}:refs/remotes/origin/{branch}",
6868
branch = self.branch_name
6969
)],
7070
options,

0 commit comments

Comments
 (0)