History

fix: set the protocol version for local git transports as well. (#450)

Previously this was only done for ssh based connections, and requires setting an environment variable.

Sebastian Thiel committed 4 years ago

Commit 41b0c191 parent 1777fa11 file · +3 −1Browse files

Unified · Split

git-transport/src/client/blocking_io/file.rs+3−1
@@ -68,7 +68,9 @@ impl SpawnProcessOnDemand { · 67 unmodified lines
6868 path,
6969 ssh_program: None,
7070 ssh_args: Vec::new(),
71− ssh_env: Vec::new(),
71+ ssh_env: (version != Protocol::V1)
72+ .then(|| vec![("GIT_PROTOCOL", format!("version={}", version as usize))])
73+ .unwrap_or_default(),
7274 child: None,
7375 connection: None,
7476 desired_version: version,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t