chiark / gitweb /
dgit: clonee: Do setup_new_tree earlier.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Jan 2017 13:01:50 +0000 (13:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Jan 2017 21:52:47 +0000 (21:52 +0000)
This avoids printing a spurious warning about actually-defused
gitattributes when cloning.  Closes:#851624.

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

index 4c73fea..4940aa3 100644 (file)
@@ -4,6 +4,8 @@ dgit (3.5~) unstable; urgency=medium
   * Improve comment left in .git/info/attributes.
   * Defuse gitattributes in private working area even if we don't do it in
     the user's tree because config setup-gitattributes=false.
+  * Do not print spurious warning about actually-defused gitattributes
+    when cloning.  Closes:#851624.
 
  --
 
diff --git a/dgit b/dgit
index dae194c..eb42b00 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3601,6 +3601,7 @@ sub clone ($) {
     mkdir $dstdir or fail "create \`$dstdir': $!";
     changedir $dstdir;
     runcmd @git, qw(init -q);
+    setup_new_tree();
     clone_set_head();
     my $giturl = access_giturl(1);
     if (defined $giturl) {
@@ -3619,7 +3620,6 @@ sub clone ($) {
        $vcsgiturl =~ s/\s+-b\s+\S+//g;
        runcmd @git, qw(remote add vcs-git), $vcsgiturl;
     }
-    setup_new_tree();
     clone_finish($dstdir);
 }