cadop / dhart

A library for Navigation Graphs, Visibility, Raycasting and other features for Design Humans Analysis RoboTics (DHART).

Home Page:https://cadop.github.io/dhart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git functionality not working in VS 2022

mariuszhermansdorfer opened this issue · comments

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'
commented

DId you try to update your git and gitlfs? Perhaps this is the issue microsoft/azure-pipelines-agent#3344

I don't have any problem switching branches in VS

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

image