From edf2e3761f78147bf4fe4fcb0c23f0c3a227d1c8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 16 Jan 2017 01:10:03 +0000 Subject: [PATCH] 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 --- dgit | 1 + dgit.7 | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/dgit b/dgit index 0df3f753..db8d1f72 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 c3e58185..acc7cc1a 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 -- 2.30.2