1#!/bin/sh
23
test_description='git show'
45
. ./test-lib.sh
67
test_expect_success setup '
8echo hello world >foo &&
9H=$(git hash-object -w foo) &&
10git tag -a foo-tag -m "Tags $H" $H &&
11HH=$(expr "$H" : "\(..\)") &&
12H38=$(expr "$H" : "..\(.*\)") &&
13rm -f .git/objects/$HH/$H38
14'
1516
test_expect_success 'showing a tag that point at a missing object' '
17test_must_fail git --no-pager show foo-tag
18'
1920
test_done