1#!/bin/sh2#3# Copyright (c) 2005 Junio C Hamano4#56test_description='git-ls-files test (--others should pick up symlinks).78This test runs git-ls-files --others with the following on the9filesystem.1011path0 - a file12path1 - a symlink13path2/file2 - a file in a directory14'15. ./test-lib.sh1617date >path018ln -s xyzzy path119mkdir path220date >path2/file221test_expect_success \22'git-ls-files --others to show output.' \23'git-ls-files --others >.output'24cat >.expected <<EOF25path026path127path2/file228EOF2930test_expect_success \31'git-ls-files --others should pick up symlinks.' \32'diff .output .expected'33test_done