Revision d43c07b8ee6684a0df8636a0c849605f0ffc066f authored by Junio C Hamano on 24 February 2009, 03:14:13 UTC, committed by Junio C Hamano on 24 February 2009, 03:14:13 UTC
* git://git.bogomips.org/git-svn:
  git-svn: read the dcommit url from the config file on a per remote basis
  git-svn: fix delete+add branch tracking with empty files
  git-svn: Create leading directories in create-ignore
2 parent s b4b0ba0 + 0df8405
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