chiark / gitweb /
dgit: mkdir .git/info in setup_gitattrs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Mar 2017 17:43:57 +0000 (17:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jul 2017 21:37:27 +0000 (22:37 +0100)
This might be necessary if setup_mergechangelogs were disabled.
(This is something of a latent bug, since `git init' creates
.git/info.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index 741c055..3aa6a14 100644 (file)
@@ -11,6 +11,7 @@ dgit (3.11~) unstable; urgency=high
     the user's object store.  In particular, core.sharedRepository.
     Prompted by #867603.
   * Clone multisuite works even without --no-rm-on-error.  Closes:#867434.
+  * Work if "git init" does not create $GIT/info.  Closes:#858054.
 
   Important bugfixes to other components:
   * dgit-badcommit-fixup: Honour core.sharedRepository.   Closes:#867603.
diff --git a/dgit b/dgit
index 40b8e32..743e869 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3380,6 +3380,7 @@ END
        return;
     }
     my $af = ".git/info/attributes";
+    ensuredir '.git/info';
     open GAO, "> $af.new" or die $!;
     print GAO <<END or die $!;
 *      dgit-defuse-attrs