chiark / gitweb /
When creating repos in dgit-repos (using the ssh-cmd method), copy _template rather...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Aug 2013 11:04:45 +0000 (12:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Aug 2013 11:04:45 +0000 (12:04 +0100)
debian/changelog
dgit

index 83f5fc45fd78454bc77b1b503f2f2658164aaad9..a57cd2f37613e306bee611712d3646db360908f1 100644 (file)
@@ -1,3 +1,11 @@
+dgit (0.8) unstable; urgency=low
+
+  * When creating repos in dgit-repos (using the ssh-cmd method),
+    copy _template rather than using mkdir and git init.
+    Closes: #720522.
+
+ -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Fri, 23 Aug 2013 12:03:25 +0100
+
 dgit (0.7) unstable; urgency=low
 
   * If dak ls, or rmadison, reports multiple versions, look for them
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'";
     }