X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5520-pull.sh;h=dd2ee842e020c23b49ed4e2070c4e31cdb7ac055;hb=9981c808b4b9307d58cedddd17689c2313a0d34a;hp=e78d40242a80d9b2aa74e74d3a4aecddbb63ab99;hpb=48ae73b11487e12f8f7198e18779e65500d4ca0c;p=git.git diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh index e78d40242..dd2ee842e 100755 --- a/t/t5520-pull.sh +++ b/t/t5520-pull.sh @@ -149,4 +149,15 @@ test_expect_success 'pull --rebase dies early with dirty working directory' ' ' +test_expect_success 'pull --rebase works on branch yet to be born' ' + git rev-parse master >expect && + mkdir empty_repo && + (cd empty_repo && + git init && + git pull --rebase .. master && + git rev-parse HEAD >../actual + ) && + test_cmp expect actual +' + test_done