cadop / dhart

A library for creating Navigation Graphs, Visibility graphs, Raycasting used in design analysis, architecture, robotics, and human factors.
https://cadop.github.io/dhart/
GNU General Public License v3.0
14 stars 9 forks source link

Git functionality not working in VS 2022 #40

Closed mariuszhermansdorfer closed 1 year ago

mariuszhermansdorfer commented 1 year ago

When trying to switch between branches or committing to the active one from VS 2022 I get the following error:

Git failed with a fatal error.
Git failed with a fatal error.
unable to parse command-line config

Error reading git config: error running C:\Users\MRHE\AppData\Local\Programs\Git\mingw64\bin\git.exe 'config' '-l': 'error: bogus format in GIT_CONFIG_PARAMETERS
unable to parse command-line config' 'exit status 128'

The Git for Windows Desktop App works fine. This is the first time I encounter a similar problem and unfortunately don't really know how to troubleshoot it.

EDIT, here is the error message when I try to pull from remote:

Remote: Total 74 (delta 52), reused 71 (delta 49), pack-reused 0        
From https://github.com/mariuszhermansdorfer/dhart
   f78e70523..5155c7795  support-for-stream-of-rays-in-embree -> origin/support-for-stream-of-rays-in-embree
Updating f78e70523..5155c7795
Error: failed to call git rev-parse --git-dir: exit status 128 : error: bogus format in GIT_CONFIG_PARAMETERS
Git failed with a fatal error.
Git failed with a fatal error.
unable to parse command-line config

Error reading git config: error running C:\Users\MRHE\AppData\Local\Programs\Git\mingw64\bin\git.exe 'config' '-l': 'error: bogus format in GIT_CONFIG_PARAMETERS
unable to parse command-line config' 'exit status 128'
cadop commented 1 year ago

DId you try to update your git and gitlfs? Perhaps this is the issue https://github.com/microsoft/azure-pipelines-agent/issues/3344

I don't have any problem switching branches in VS

mariuszhermansdorfer commented 1 year ago

Yes, updating git solved it. I'll close the issue as resolved.

image