Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 0a53e9ddeaddad63ad106860237bbf53411d11a7 authored by Junio C Hamano on 29 July 2009, 07:32:42 UTC
GIT 1.6.4
Tip revision: 0a53e9d
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