summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-09-07 23:16:35 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-09-08 00:07:10 +0100
commita0ac573f8359151786951ed5f4993a4322275759 (patch)
treec0023e70de3c26ced4ab283725fdbdbc8ee34e89
parent7f77fa1ada1fd09c3de3c0e26ff683201c007cba (diff)
dgit: tolerate making quilt patches creating +x files
We allow files with mode 00755 too. This works now This seems to have been an accidental extension to the source formaat, resulting from an extension to GNU `diff` and `patch`, I think it is fair to allow it now. Closes: #949675 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit1
-rwxr-xr-xtests/tests/unrepresentable6
2 files changed, 1 insertions, 6 deletions
diff --git a/dgit b/dgit
index 145fa9b..283f967 100755
--- a/dgit
+++ b/dgit
@@ -5435,6 +5435,7 @@ sub quiltify_trees_differ ($$;$$$) {
# creation
die __ "creation with non-default mode\n"
unless $newmode =~ m/^100644$/ or
+ $newmode =~ m/^100755$/ or
$newmode =~ m/^120000$/;
}
};
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable
index fcff784..fb1cf61 100755
--- a/tests/tests/unrepresentable
+++ b/tests/tests/unrepresentable
@@ -63,12 +63,6 @@ badly-1 src.c 'mode or type changed'
git add src.c
badly-2
-badly-1 new 'creation with non-default mode'
- echo hi >new
- chmod 755 new
- git add new
-badly-2
-
start
good