bash: teach __git_ps1 about CHERRY_PICK_HEAD
[git.git] / t / t7007-show.sh
blobcce222f052177fd235af3d3f864c0a8cb9505a91
1 #!/bin/sh
3 test_description='git show'
5 . ./test-lib.sh
7 test_expect_success setup '
8 echo hello world >foo &&
9 H=$(git hash-object -w foo) &&
10 git tag -a foo-tag -m "Tags $H" $H &&
11 HH=$(expr "$H" : "\(..\)") &&
12 H38=$(expr "$H" : "..\(.*\)") &&
13 rm -f .git/objects/$HH/$H38
16 test_expect_success 'showing a tag that point at a missing object' '
17 test_must_fail git --no-pager show foo-tag
20 test_done