checkout test: enable test with complex relative path
commitb0afc02649285febd6155c1c64d2383b856c1c0e
authorStefan Beller <stefanbeller@googlemail.com>
Wed, 9 Oct 2013 14:35:11 +0000 (9 16:35 +0200)
committerJonathan Nieder <jrnieder@gmail.com>
Wed, 9 Oct 2013 19:49:55 +0000 (9 12:49 -0700)
treec9e32f5bd33d0667159c1b3ed74896e9512136da
parent1e155359bf58d7063f75bdb218987aedf62ad550
checkout test: enable test with complex relative path

This test was added, commented out, in fed1b5ca (git-checkout: Test
for relative path use, 2007-11-09).  Later git's path handling was
improved (d089ebaa, setup: sanitize absolute and funny paths in
get_pathspec(), 2008-01-28) but we forgot to enable the now-working
test.

This test expects to run from a subdirectory, so add a 'cd'.  While
we're here, examine the content of the checked-out file instead of
just checking that it exists.  The other checkout tests already do the
same.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
t/t2008-checkout-subdir.sh