Set initial branch to main when creating bare repos
Without --initial-branch, git defaults to master, which mismatches
the push command that explicitly pushes main.

Assisted-by: GLM-5.1 via pi
change posunmlqynpzooowlzyoxntowzyyonzy
commit e6a673c27f9d5b5964099a7e508785383f6e2149
author Alpha Chen <alpha@kejadlen.dev>
date
parent lnmlmzxm
diff --git a/src/bin/quire/commands/repo.rs b/src/bin/quire/commands/repo.rs
index 557c59c..eacece8 100644
--- a/src/bin/quire/commands/repo.rs
+++ b/src/bin/quire/commands/repo.rs
@@ -14,7 +14,7 @@ pub async fn new(quire: &Quire, name: &str) -> Result<()> {
     }
 
     let status = Command::new("git")
-        .args(["init", "--bare", name])
+        .args(["init", "--bare", "--initial-branch=main", name])
         .current_dir(quire.repos_dir())
         .status()
         .into_diagnostic()?;
diff --git a/src/quire.rs b/src/quire.rs
index 4348585..398fe66 100644
--- a/src/quire.rs
+++ b/src/quire.rs
@@ -387,7 +387,7 @@ mod tests {
             output
         };
 
-        git(&["init", "--bare"]);
+        git(&["init", "--bare", "-b", "main"]);
 
         let repo = Repo { path: bare };