X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Ft5510-fetch.sh;h=df7750f7d1ede6e888ec3071397115022e067eb3;hb=17d778e710f9dacc770b5790e792b85cdba75a9d;hp=6946557c677ccc190309cd5961b046c420174f7d;hpb=008442f5e798e511cc0cd5d9443552b0d107d558;p=git.git diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 6946557c6..df7750f7d 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -37,7 +37,8 @@ test_expect_success "clone and setup child repos" ' echo "Pull: refs/heads/one:refs/heads/one" } >.git/remotes/two && cd .. && - git clone . bundle + git clone . bundle && + git clone . seven ' test_expect_success "fetch test" ' @@ -295,4 +296,11 @@ test_expect_success 'configured fetch updates tracking' ' ) ' +test_expect_success 'pushing nonexistent branch by mistake should not segv' ' + + cd "$D" && + test_must_fail git push seven no:no + +' + test_done