Skip to main content
Participant
October 2, 2025
Answered

libgit2 error -3(6/path is not a repository: /Users/.../Ch Data/repo.noindex) returned from ...

  • October 2, 2025
  • 1 reply
  • 130 views

Hi there,
when i try to open an older project, i get this error:

libgit2 error -3(6/path is not a repository: /Users/.../Ch Data/repo.noindex) returned from git_repository_open_bare(&raw-RepoP, (const char*)fullPathP) [null]

 

best,
patrick

Correct answer dtull-adobe

Ok, this part is actually open source -- one thing I note is absent from your screenshot is a file named HEAD (note -- no extension). In a default repo, the file contains the text "ref: refs/heads/main". It doesn't actually get used anymore with the rope file, but the old file support code still expects some of those vestigial bits to be present apparently.

 

1 reply

Community Manager
October 2, 2025

Strange. The most important file (projectdata.rope) is present, so this should be recoverable. Looking up that message now to remind me which files it expects to exist because of the legacy support for the "loose files" git repo style projects that predated the more robust file format.

dtull-adobeCommunity ManagerCorrect answer
Community Manager
October 2, 2025

Ok, this part is actually open source -- one thing I note is absent from your screenshot is a file named HEAD (note -- no extension). In a default repo, the file contains the text "ref: refs/heads/main". It doesn't actually get used anymore with the rope file, but the old file support code still expects some of those vestigial bits to be present apparently.

 

Participant
October 3, 2025

Thank you @dtull-adobe !! 
After adding the HEAD file, the project opened normally again. Thanks for the quick and precise help! 🙌