| # Copyright (c) 2006 Shawn Pearce |
| test_description='git reset should cull empty subdirs' |
| 'creating initial files' \ |
| cp "$TEST_DIRECTORY"/../COPYING path0/COPYING && |
| 'creating second files' \ |
| cp "$TEST_DIRECTORY"/../COPYING path1/path2/COPYING && |
| cp "$TEST_DIRECTORY"/../COPYING path1/COPYING && |
| cp "$TEST_DIRECTORY"/../COPYING COPYING && |
| cp "$TEST_DIRECTORY"/../COPYING path0/COPYING-TOO && |
| git add path1/path2/COPYING && |
| git add path0/COPYING-TOO && |
| 'checking initial files exist after rewind' \ |
| 'checking lack of path1/path2/COPYING' \ |
| '! test -f path1/path2/COPYING' |
| 'checking lack of path1/COPYING' \ |
| '! test -f path1/COPYING' |
| 'checking lack of COPYING' \ |
| 'checking checking lack of path1/COPYING-TOO' \ |
| '! test -f path0/COPYING-TOO' |
| 'checking lack of path1/path2' \ |
| 'checking lack of path1' \ |