chiark / gitweb /
Tests suite: import-nonnative: Put a .pc in the craziest .orig too
[dgit.git] / tests / tests / import-nonnative
index 838731a93bd3e648c164f4b2c234279785e6f13b..b8cbf255057e5f1603b7ace4f6ebe22b9b6d8f9a 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,12 @@ mangle1 example 1.0-1
 tar zvcf ../$orig .
 mangle2
 
+# 3.0 (quilt), multiple patches, tarbomb orig with dot and .git and .pc
+mangle1 example 1.0-1
+git init
+mkdir .pc
+echo SPONG >.pc/SPONG
+tar zvcf ../$orig .
+mangle2
+
 echo done.