chiark / gitweb /
When creating repos in dgit-repos (using the ssh-cmd method), copy _template rather...
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 41375195d6cdd997ff79ff8aff572930647af1bf..94adcb5fd856349b8a2ec52bb56d1de74738257a 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -456,9 +456,7 @@ sub create_remote_git_repo () {
        runcmd_ordryrun
            (access_cfg('ssh'),access_gituserhost(),
             "set -e; cd ".access_cfg('git-path').";".
-            " mkdir -p $package.git;".
-            " cd $package.git;".
-            " if ! test -d objects; then git init --bare; fi");
+            " cp -a _template $package.git");
     } else {
        badcfg "unknown git-create \`$how'";
     }