summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-01-02 00:25:46 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-01-02 01:48:57 +0000
commita8701586cae6565b7bf7d186bca9a08d3b1e8e17 (patch)
tree1bcfe846aa9c93a6a4113b0070ecdca9d601f559
parent849e75fdf0c4189ea243b5644d12b54ba87fddf9 (diff)
tests/update-db-compat: Adjust worktrees too.
Now all the tests pass even with the debhelper that doesn't support 5. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xtests/update-dh-compat19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/update-dh-compat b/tests/update-dh-compat
index 16eee85..9afe1bf 100755
--- a/tests/update-dh-compat
+++ b/tests/update-dh-compat
@@ -23,6 +23,7 @@ set -e
# This ad-hoc script was wrtten to deal with #1002927.
+export FILTER_BRANCH_SQUELCH_WARNING=1
toplevel=$PWD
cd_fresh_d () {
@@ -94,6 +95,24 @@ done
cd "$toplevel"
+for f in tests/worktrees/*.tar; do
+ cd_fresh_d
+
+ tar xf ../$f
+
+ p=$(echo *)
+ cd $p
+ adjust_git_filter
+ adjust
+ cd ..
+
+ tar cf ../$f $p
+
+ cd ..
+done
+
+cd "$toplevel"
+
rm -rf d
echo ok.