summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-16 01:10:03 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-16 01:14:23 +0000
commitedf2e3761f78147bf4fe4fcb0c23f0c3a227d1c8 (patch)
treec4f6d2fdea45cb6b3c3b2da1d8b5e17d5430160a
parent8ac258a499a5d034684d47c6144be82b87535c24 (diff)
gitattributes: Suppress transformations in our cloned trees
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>
-rwxr-xr-xdgit1
-rw-r--r--dgit.76
2 files changed, 7 insertions, 0 deletions
diff --git a/dgit b/dgit
index 0df3f75..db8d1f7 100755
--- 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 c3e5818..acc7cc1 100644
--- 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