max / makenotwork
1 file changed,
+1 insertion,
-1 deletion
| @@ -306,7 +306,7 @@ impl russh::server::Handler for MnwHandler { | |||
| 306 | 306 | // gets git group ownership. Avoids systemd security | |
| 307 | 307 | // restrictions that block sudo child processes. | |
| 308 | 308 | match tokio::process::Command::new("git") | |
| 309 | - | .args(["init", "--bare", "--shared=group", &auth.repo_path]) | |
| 309 | + | .args(["init", "--bare", "--shared=group", "-b", "main", &auth.repo_path]) | |
| 310 | 310 | .stdout(std::process::Stdio::null()) | |
| 311 | 311 | .stderr(std::process::Stdio::null()) | |
| 312 | 312 | .status() |