logseq-plugin-git: Unable to access .git/config

Hello,

On Windows 11 I get this error:

Unable to access .git/config

Screenshot 2023-12-29 123846

EDIT: I thought I had discovered the reason, but I didn’t. :

I thought the plugin was not using the .git/config on my graphs folder:

C:\my_path\my_graph_folder\.git

Instead it was using a .git on the Logseq app folder:

C:\Users\my_user\.logseq\git\Ccomma_Users_my_user_Documents_Logseq_my_graph_name\.git

This folder was empty… when I copied the .git/config file on it, it stopped giving the error when I start Logseq, but after a while using it, it came back…

Any ideas on how to solve this problem?

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Reactions: 7
  • Comments: 18

Most upvoted comments

I can confirm that I have the exact same issue on Logseq v0.10.3 running logseq-plugin-git v1.5.5 on Windows 10 with git v2.43.0.windows.1

Hello @pirachute,

same here! It seems, there is a race condition problem with .git\config.

I took a look with Process Monitor and found following git commands, Logseq executes:

image

You can find it in the source code of Logseq at HERE.

I have no clue, why it is necessary to set core.safecrlf after every call of git status, commit, pull, … . This is a question for the devs!

I continue getting a constant stream of these errors:

image