Gitnuro icon indicating copy to clipboard operation
Gitnuro copied to clipboard

Cannot Push Pull when using git credentials manager without full path specified

Open FLKS07 opened this issue 1 year ago • 5 comments

The Bug is happening when I try to push or pull a commit, the error is "The system cannot find the specified file".

To Reproduce Try to push or pull a commit,

  1. Open a repository
  2. Click on Pull or Push
  3. See error

Expected behavior It should push or pull to the origin

Screenshots {763A433D-ACB8-4504-94CC-6A137C1306D3} The error on some part is in portuguese and says "The system cannot find the specified file".

Desktop (please complete the following information):

  • OS: Windows 11 Enterprise LTSC
  • Version 24H2

FLKS07 avatar Oct 09 '24 12:10 FLKS07

Hello,

It's a known issue I'm trying to address towards Gitnuro 1.5.0 (there are some fixes in place but not complete). The workaround for now is specifying the manager full path. In the readme there is this example:

[credential]
   helper = C:/Program Files/Git/mingw64/bin/git-credential-manager-core.exe

You may need to adapt the path to make sure it exists.

JetpackDuba avatar Oct 10 '24 11:10 JetpackDuba

I also had this bug.

The workaround of editing my global gitconfig worked but the edit was slightly different:

[credential]
	helper = C:/Program Files/Git/mingw64/bin/git-credential-manager.exe

I.e. git-credential-manger.exe, not git-credential-manager-core.exe.

hughstimson avatar Dec 02 '24 19:12 hughstimson

P.S. Mistakes I made during trying to fix this:

[credentials] without tailing 's' [credential] editor = ... has to be helper = ... "C:\Program Files\Git\mingw64\bin\git-credential-manager.exe" has to use linux-like path-structure, while ignoring spaces, and does not allow copy-pasting the path from the Windows-Explorer together with the quotation marks C:/Program Files/Git/mingw64/bin/git-credential-manager.exe

Yaksinikos avatar Dec 04 '24 07:12 Yaksinikos

I was having issues with this even when quoting the credential manager path, git would show an error saying that C:/Program could not be run. If this happens to anyone else short paths fixed it for me.

e.g.:

[credential]
	helper = C:/Progra~1/Git/mingw64/bin/git-credential-manager.exe

Renari avatar Jan 13 '25 23:01 Renari

I've edited the title and I'll try to address this issue for 1.6.0, as this issue shows up quite often and should be fixable. I've tested some solutions that work well with Linux and MacOS but not Windows.

JetpackDuba avatar May 16 '25 12:05 JetpackDuba