git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [REPLACEMENT PATCH] git-checkout: Add a test case for relative paths use.

From
Andreas Ericsson <ae@op5.se>
Date
Nov 8, 2007, 09:23 UTC
Message-ID
<4732D5A9.5040504@op5.se>
In-Reply-To
<11945006082887-git-send-email-dsymonds@gmail.com>
David Symonds wrote:
Show 10 quoted lines
> +'
> +
> +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
Previous: David SymondsNext: David Symonds
Message 2 of 3 in “git-checkout: Add a test case for relative paths use.”
  1. git-checkout: Add a test case for relative paths use.David Symonds, Nov 8, 2007
  2. Andreas EricssonNov 8, 2007
  3. David SymondsNov 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.