diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index e78d40242a80d9b2aa74e74d3a4aecddbb63ab99..dd2ee842e020c23b49ed4e2070c4e31cdb7ac055 100755 (executable)
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
'
+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