Revision 6c3b3e141f289ffc5916f65f2fe307bc0bcd5dd8 authored by Junio C Hamano on 11 March 2009, 20:55:49 UTC, committed by Junio C Hamano on 11 March 2009, 20:55:49 UTC
* jc/maint-add-p-unquote:
  git-add -i/-p: learn to unwrap C-quoted paths
2 parent s 5f7b338 + 8851f48
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