]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5003-archive-zip.sh
Merge branch 'gc/branch-recurse-submodules-fix'
[thirdparty/git.git] / t / t5003-archive-zip.sh
index 1e6d18b140e5193d1eb046adbbbbba8c20cb63b1..d726964307ca89373eeaf206bbb2dc2d4c1c3008 100755 (executable)
@@ -106,7 +106,7 @@ test_expect_success \
      printf "A\$Format:%s\$O" "$SUBSTFORMAT" >a/substfile1 &&
      printf "A not substituted O" >a/substfile2 &&
      (p=long_path_to_a_file && cd a &&
-      for depth in 1 2 3 4 5; do mkdir $p && cd $p; done &&
+      for depth in 1 2 3 4 5; do mkdir $p && cd $p || exit 1; done &&
       echo text >file_with_long_path)
 '