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
Anthony Sottile <asottile@umich.edu>
Date
Mar 11, 2019, 20:13 UTC
Message-ID
<CA+dzEB=oKhd5O7bhWLNvvYM9eyht7SO1LkY5Sy=tEFhCCZzfDQ@mail.gmail.com>
In-Reply-To
<CAKepmajVk27nHAzbuHitowyo11HvqSNfwfcg3kOp9DXDLe8FOA@mail.gmail.com>

On Mon, Mar 11, 2019 at 12:34 PM Jack Adrian Zappa <adrianh.bsc@gmail.com> wrote:

Show 16 quoted lines
>
> Hey Anthony,
>
> Are you sure that you have 8.3 active on the partition you are using?
> IIRC, It is not on by default anymore.  To see, go to a cmd line and
> type "dir /x".  If there are any files that exceed the 8.3 format, it
> will show those files with two names, the 8.3 name and the long name.
>
> If it is off and you want to turn it on, see
> https://support.microsoft.com/en-ca/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions.
> and https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/ff621566(v=ws.11)
> for more information.
>
>
> A
>
Yes, it appears they are enabled -- see below

C:\Users\IEUser\AppData\Local\Temp\t\longname-repo>git add C:\Users\IEUser\AppData\Local\Temp\t\longna~1\f fatal: C:\Users\IEUser\AppData\Local\Temp\t\longna~1\f: 'C:\Users\IEUser\AppData\Local\Temp\t\longna~1\f' is outside repository

C:\Users\IEUser\AppData\Local\Temp\t\longname-repo>git add C:\Users\IEUser\AppData\Local\Temp\t\longname-repo\f

C:\Users\IEUser\AppData\Local\Temp\t\longname-repo>dir /x ..
 Volume in drive C has no label.
 Volume Serial Number is 3A97-874F
 Directory of C:\Users\IEUser\AppData\Local\Temp\t
03/11/2019  01:11 PM    <DIR>                       .
03/11/2019  01:11 PM    <DIR>                       ..
03/11/2019  01:11 PM    <DIR>          LONGNA~1     longname-repo
               0 File(s)              0 bytes
               3 Dir(s)  20,063,666,176 bytes free
Previous: Jack Adrian ZappaNext: Johannes Schindelin
Message 7 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.