https://github.com/git/git
Raw File
Tip revision: 87b50542a08ac6caa083ddc376e674424e37940a authored by Junio C Hamano on 18 September 2010, 21:55:08 UTC
Git 1.7.3
Tip revision: 87b5054
t7007-show.sh
#!/bin/sh

test_description='git show'

. ./test-lib.sh

test_expect_success setup '
	echo hello world >foo &&
	H=$(git hash-object -w foo) &&
	git tag -a foo-tag -m "Tags $H" $H &&
	HH=$(expr "$H" : "\(..\)") &&
	H38=$(expr "$H" : "..\(.*\)") &&
	rm -f .git/objects/$HH/$H38
'

test_expect_success 'showing a tag that point at a missing object' '
	test_must_fail git --no-pager show foo-tag
'

test_done
back to top