X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft5520-pull.sh;h=dd2ee842e020c23b49ed4e2070c4e31cdb7ac055;hb=6a1b3fc78311f16834d885e4e0baead8e51ed631;hp=e78d40242a80d9b2aa74e74d3a4aecddbb63ab99;hpb=61c6457e893f568524155b4197a6be076a27ce3d;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