chiark / gitweb /
Test suite: import-nonnative: Test origs with .git directories
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 23:24:54 +0000 (23:24 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 23:55:40 +0000 (23:55 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/import-nonnative

index 838731a93bd3e648c164f4b2c234279785e6f13b..244077eceec30fd8f06f37347bdc9c1e302fa7dc 100755 (executable)
@@ -66,7 +66,7 @@ chk2() {
                ')
                perl -i~ -pe '
                        s#^\Q'"$pfx"'\E##;
-                       $_="" if m/^$/ || m#/$#;
+                       $_="" if m/^$/ || m#/$# || m#^\.git/#;
                ' ../files.o
                orig=${orig#../}
                pat="^Import ${orig//./\\.}\$"
@@ -129,4 +129,10 @@ mangle1 example 1.0-1
 tar zvcf ../$orig .
 mangle2
 
+# 3.0 (quilt), multiple patches, tarbomb orig with dot and .git
+mangle1 example 1.0-1
+git init
+tar zvcf ../$orig .
+mangle2
+
 echo done.