git.el: Remove the env parameter in git-call-process and git-call-process-string.
[git/dscho.git] / t / t2011-checkout-invalid-head.sh
blob764bb0a6bc3de1f3313fb16c384bbd37c82ae5da
1 #!/bin/sh
3 test_description='checkout switching away from an invalid branch'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 echo hello >world &&
9 git add world &&
10 git commit -m initial
13 test_expect_success 'checkout master from invalid HEAD' '
14 echo 0000000000000000000000000000000000000000 >.git/HEAD &&
15 git checkout master --
18 test_done