t / t7007-show.shon commit Add missing test file for UTF-16. (214a5f2)
   1#!/bin/sh
   2
   3test_description='git show'
   4
   5. ./test-lib.sh
   6
   7test_expect_success setup '
   8        echo hello world >foo &&
   9        H=$(git hash-object -w foo) &&
  10        git tag -a foo-tag -m "Tags $H" $H &&
  11        HH=$(expr "$H" : "\(..\)") &&
  12        H38=$(expr "$H" : "..\(.*\)") &&
  13        rm -f .git/objects/$HH/$H38
  14'
  15
  16test_expect_success 'showing a tag that point at a missing object' '
  17        test_must_fail git --no-pager show foo-tag
  18'
  19
  20test_done