From: Andreas Ericsson Date: Thu, 08 Nov 2007 09:23:53 GMT Subject: Re: [REPLACEMENT PATCH] git-checkout: Add a test case for relative paths use. Message-ID: <4732D5A9.5040504@op5.se> In-Reply-To: <11945006082887-git-send-email-dsymonds@gmail.com> David Symonds wrote: > +' > + > +test_expect_failure 'checkout with relative path outside tree should fail (1)' \ > + 'git checkout HEAD - ../file0' > + > +test_expect_failure 'checkout with relative path outside tree should fail (2)' \ > + 'cd dir1 && git checkout HEAD - ./file0' > + > +test_expect_failure 'checkout with relative path outside tree should fail (2)' \ > + 'cd dir1 && git checkout HEAD - ../../file0' Single-dashes on all of these? Looks good otherwise. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231