projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Get rid of the last remnants of GIT_CONFIG_LOCAL
[git]
/
t
/
t2011-checkout-invalid-head.sh
1
#!/bin/sh
2
3
test_description='checkout switching away from an invalid branch'
4
5
. ./test-lib.sh
6
7
test_expect_success 'setup' '
8
echo hello >world &&
9
git add world &&
10
git commit -m initial
11
'
12
13
test_expect_success 'checkout master from invalid HEAD' '
14
echo 0000000000000000000000000000000000000000 >.git/HEAD &&
15
git checkout master --
16
'
17
18
test_done