]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t5710-info-alternate.sh
git-fetch test: test tracking fetch results, not just FETCH_HEAD
[git.git] / t / t5710-info-alternate.sh
index 699df6ebd8b6e76f95b255783c892de23610e504..1908dc8b06aa5a5d217d70c26f64c3700d593be0 100755 (executable)
@@ -53,14 +53,18 @@ git prune'
 
 cd "$base_dir"
 
-test_expect_failure 'creating too deep nesting' \
+test_expect_success 'creating too deep nesting' \
 'git clone -l -s C D &&
 git clone -l -s D E &&
 git clone -l -s E F &&
 git clone -l -s F G &&
-git clone -l -s G H &&
-cd H &&
-test_valid_repo'
+git clone -l -s G H'
+
+test_expect_success 'invalidity of deepest repository' \
+'cd H && {
+       test_valid_repo
+       test $? -ne 0
+}'
 
 cd "$base_dir"