diff options
Diffstat (limited to 'src/git')
| -rw-r--r-- | src/git/subprocess.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/git/subprocess.rs b/src/git/subprocess.rs index dac3ace..c95bce5 100644 --- a/src/git/subprocess.rs +++ b/src/git/subprocess.rs | |||
| @@ -30,6 +30,15 @@ impl GitSubprocess { | |||
| 30 | let repo_path = repo_path.as_ref(); | 30 | let repo_path = repo_path.as_ref(); |
| 31 | 31 | ||
| 32 | let mut cmd = Command::new("git"); | 32 | let mut cmd = Command::new("git"); |
| 33 | |||
| 34 | // GRASP-01 requirement: MUST include `allow-reachable-sha1-in-want` and | ||
| 35 | // `allow-tip-sha1-in-want` in advertisement and serve available oids. | ||
| 36 | // These config options must be passed before the command name. | ||
| 37 | cmd.arg("-c"); | ||
| 38 | cmd.arg("uploadpack.allowReachableSHA1InWant=true"); | ||
| 39 | cmd.arg("-c"); | ||
| 40 | cmd.arg("uploadpack.allowTipSHA1InWant=true"); | ||
| 41 | |||
| 33 | cmd.arg(service.command_name()); | 42 | cmd.arg(service.command_name()); |
| 34 | 43 | ||
| 35 | if advertise { | 44 | if advertise { |