[PR #434] fix: use --git-dir instead of --absolute-git-dir for Git < 2.13 compat #467

Closed
opened 2026-03-02 04:13:42 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/434

State: closed
Merged: Yes


The --absolute-git-dir flag was added in Git 2.13. On older versions
(e.g. 2.11.1), git rev-parse outputs the literal string "absolute-git-dir"
instead of the resolved path, causing repository detection to fail.

Replace --absolute-git-dir with --git-dir and resolve relative paths
(e.g. ".git") against the toplevel working directory.

Fixes #425

https://claude.ai/code/session_01JpFmHufP3AorZr2b1ad3iD

**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/434 **State:** closed **Merged:** Yes --- The --absolute-git-dir flag was added in Git 2.13. On older versions (e.g. 2.11.1), git rev-parse outputs the literal string "absolute-git-dir" instead of the resolved path, causing repository detection to fail. Replace --absolute-git-dir with --git-dir and resolve relative paths (e.g. ".git") against the toplevel working directory. Fixes #425 https://claude.ai/code/session_01JpFmHufP3AorZr2b1ad3iD
kerem 2026-03-02 04:13:42 +03:00
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#467
No description provided.