Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: e8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d authored by Junio C Hamano on 06 April 2012, 17:47:58 UTC
Git 1.7.10
Tip revision: e8dde3e
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