mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-29 11:01:13 +00:00
git: pass --no-write-fetch-head to git
This makes the fetch invisible to other people.
This commit is contained in:
parent
00bc69b10e
commit
31afda99d4
@ -132,7 +132,8 @@ impl<'a> GitSubprocessContext<'a> {
|
||||
let mut command = self.create_command();
|
||||
command.stdout(Stdio::piped());
|
||||
// attempt to prune stale refs with --prune
|
||||
command.args(["fetch", "--prune"]);
|
||||
// --no-write-fetch-head ensures our request is invisible to other parties
|
||||
command.args(["fetch", "--prune", "--no-write-fetch-head"]);
|
||||
if callbacks.progress.is_some() {
|
||||
command.arg("--progress");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user