Web lists-archives.com

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

On Mon, Mar 11, 2019 at 12:34 PM Jack Adrian Zappa
<adrianh.bsc@xxxxxxxxx> wrote:
> 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
fatal: C:\Users\IEUser\AppData\Local\Temp\t\longna~1\f:
'C:\Users\IEUser\AppData\Local\Temp\t\longna~1\f' is outside

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

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