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