X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Ft5510-fetch.sh;h=df7750f7d1ede6e888ec3071397115022e067eb3;hb=e12455479651c3444aca9cf550b1e1beed1055a6;hp=6946557c677ccc190309cd5961b046c420174f7d;hpb=d6d96f835cace1c108100cf88e216a59debcb937;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