chiark / gitweb /
gitattributes: Suppress transformations in our cloned trees
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 Jan 2017 01:10:03 +0000 (01:10 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 Jan 2017 01:14:23 +0000 (01:14 +0000)
The user wants a checkout of the actual source tree, so that their
checkout and the source package are identical.

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

diff --git a/dgit b/dgit
index 0df3f7534a1872b3a11615232679a110ca347b6a..db8d1f72bbbc8ed4aedab90868cc03d21970d6bc 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3367,6 +3367,7 @@ END
 sub setup_new_tree () {
     setup_mergechangelogs();
     setup_useremail();
+    setup_gitattrs();
 }
 
 sub multisuite_suite_child ($$$) {
diff --git a/dgit.7 b/dgit.7
index c3e581853701e1b820d53cdb8be3f52b511cd04b..acc7cc1a36d71f3dfc67b740ff3aa31a4e1663f2 100644 (file)
--- a/dgit.7
+++ b/dgit.7
@@ -221,6 +221,12 @@ they can cause trouble,
 because the working tree files can differ from
 the git revision history
 (and therefore from the source packages).
+
+So dgit clone
+and dgit setup-new-tree
+disable transforming gitattributes
+by default,
+by creating a .git/info/attributes.
 .SH PACKAGE SOURCE FORMATS
 If you are not the maintainer, you do not need to worry about the
 source format of the package.  You can just make changes as you like