[GH-ISSUE #425] Bug Report: Fails to detect git repo on older Git versions (2.11.1) #158

Closed
opened 2026-03-02 04:12:23 +03:00 by kerem · 1 comment
Owner

Originally created by @ShuboLiang on GitHub (Jan 30, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/425

My Git version is 2.11.1. I've noticed an issue: when executing git-ai checkpoint, it attempts to locate the repository path by running the command "C:\Program Files\Git\cmd\git.exe" rev-parse --absolute-git-dir --show-toplevel. However, with version 2.11.1, the output is

absolute-git-dir
E:/test2

which causes a parsing error and results in the Git repository not being found.

Originally created by @ShuboLiang on GitHub (Jan 30, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/425 My Git version is 2.11.1. I've noticed an issue: when executing git-ai checkpoint, it attempts to locate the repository path by running the command "C:\Program Files\Git\cmd\git.exe" rev-parse --absolute-git-dir --show-toplevel. However, with version 2.11.1, the output is ```bash absolute-git-dir E:/test2 ``` which causes a parsing error and results in the Git repository not being found.
kerem 2026-03-02 04:12:23 +03:00
Author
Owner

@svarlamov commented on GitHub (Feb 4, 2026):

Thanks for the report @ShuboLiang -- fixed and will go out in the next rel!

<!-- gh-comment-id:3849144971 --> @svarlamov commented on GitHub (Feb 4, 2026): Thanks for the report @ShuboLiang -- fixed and will go out in the next rel!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#158
No description provided.