1#!/bin/sh
   2#
   3# Copyright (c) 2006 Carl D. Worth
   4#
   5test_description='git ls-files test for --error-unmatch option
   7This test runs git ls-files --error-unmatch to ensure it correctly
   9returns an error when a non-existent path is provided on the command
  10line.
  11'
  12. ./test-lib.sh
  13touch foo bar
  15git update-index --add foo bar
  16git commit -m "add foo bar"
  17test_expect_success \
  19    'git ls-files --error-unmatch should fail with unmatched path.' \
  20    'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
  21test_expect_success \
  23    'git ls-files --error-unmatch should succeed eith matched paths.' \
  24    'git ls-files --error-unmatch foo bar'
  25test_done
  271