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

Re: `git add <<windows 8.3 path to file inside repo>>` results in "fatal: ... is outside repository"

From
Johannes Sixt <j6t@kdbg.org>
Date
Mar 11, 2019, 17:48 UTC
Message-ID
<10972e0e-7fe1-437f-efe6-cff82a1205e0@kdbg.org>
In-Reply-To
<CA+dzEBkkbQj0rCjvPfcET2Uvt6fP_v+wQE52ZkAND2Mps08SNQ@mail.gmail.com>
Am 10.03.19 um 23:41 schrieb Anthony Sottile:
Show 5 quoted lines
> git init longname-repo
> cd longname-repo
> touch f
> git add ..\longna~1\f
> 
...
> 
> C:\Users\Anthony\AppData\Local\Temp\t\pre-commit-hooks\longname-repo>git
> add ..\longna~1\f
> fatal: ..\longna~1\f: '..\longna~1\f' is outside repository

This has nothing to do with long vs. short path names. It would report the same error when you say

  git add ..\longname-repo\f
-- Hannes
Previous: Anthony SottileNext: Anthony Sottile
Message 2 of 8 in “`git add <<windows 8.3 path to file inside repo>>` results in "fatal: ... is outside repository"”
  1. Anthony SottileMar 10, 2019
  2. Johannes SixtMar 11, 2019
  3. Anthony SottileMar 11, 2019
  4. Torsten BögershausenMar 11, 2019
  5. Anthony SottileMar 11, 2019
  6. Jack Adrian ZappaMar 11, 2019
  7. Anthony SottileMar 11, 2019
  8. Johannes SchindelinMar 12, 2019

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.