Skip to content

Commit d3fecc0

Browse files
christian-schillingLMG
authored andcommitted
Fix fetch refspec in josh cli
Without the + non fast forward fetches are rejected, breaking the stack/force push workflow.
1 parent 42d4de2 commit d3fecc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

josh-cli/src/bin/josh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ fn handle_remote_add_repo(args: &RemoteAddArgs, repo_path: &std::path::Path) ->
847847
.context("Failed to store filter in git config")?;
848848

849849
// Store refspec in josh-remote section (for unfiltered refs)
850-
let refspec = format!("refs/heads/*:refs/josh/remotes/{}/*", args.name);
850+
let refspec = format!("+refs/heads/*:refs/josh/remotes/{}/*", args.name);
851851
config
852852
.set_str(&format!("josh-remote.{}.fetch", args.name), &refspec)
853853
.context("Failed to store refspec in git config")?;

0 commit comments

Comments
 (0)