diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-08-23 12:04:45 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-08-23 12:04:45 +0100 |
commit | 5a4dc24f3a020c36a4171d5448cf8a0f50c91f75 (patch) | |
tree | 277a9c30c6ce87a1edb00236c5964225ef8b224e | |
parent | f8ed9026e0fb1f258296f51a5722f5ed0d065c4b (diff) |
When creating repos in dgit-repos (using the ssh-cmd method), copy _template rather than using mkdir and git init. Closes: #720522.
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | dgit | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 83f5fc4..a57cd2f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 @@ -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'"; } |