Revision 34b383e7cd57692fd3996c1e8c9e738dab53ac48 authored by Junio C Hamano on 13 March 2010, 20:41:20 UTC, committed by Junio C Hamano on 13 March 2010, 20:41:20 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 00fb3d2
Raw File
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