Filename too Long in GitKraken for Windows
Asked Answered
I

1

3

As suggested in Q22575737, I've updated my registry and have set git config --system core.longpaths true while working with long paths. The problem is solved in Git Bash for Windows however, I am getting the error in GitKraken as below. I've also enabled Long Paths = True from GitKraken preferences as suggested in Q60008822

enter image description here

Related information to OS and file system:

debmalya@DESKTOP-IPD20NF MINGW64 ~
$ git --version
git version 2.38.1.windows.1

GitKraken Client Version: 8.10.3 (x64)

Windows Specifications
======================
Edition Windows 10 Home Single Language
Version         22H2
Installed on    ‎02-‎11-‎2022
OS build        19045.2130
Experience      Windows Feature Experience Pack 120.2212.4180.0

.gitconfig file settings:

enter image description here

Incongruous answered 11/11, 2022 at 7:22 Comment(0)
A
0

As a workaround, try and map a local folder to a drive letter

subst x: C:\your`\long\path\to\root\folder\of\repository

See if the issue persists when opening X:\ as your repository in GitKraken.

Apostolate answered 11/11, 2022 at 7:27 Comment(4)
Fails with the message: Open Failed: Could not find a compatible repository at 'gitkraken.exe', but git bash recognizes it.Incongruous
@Mr.Hobo Did you map the root folder of your repository? (and not a subfolder inside the repo)Apostolate
My long path is D:\dev-works\<repository-root>\subdir\subdir\subdir\<submodule-folder> I tried with both repository root and submodule folder, got the same result (repository-link)Incongruous
@Mr.Hobo OK. I was suggesting to subst only to `D:\dev-works\<repository-root>`, not below. That might not be enough.Apostolate

© 2022 - 2024 — McMap. All rights reserved.