pgit.sh: Stop looking for .git at regular file #128

Merged
Jan Lindemann merged 1 commit from jan/feature/20260927-pgit-sh-stop-looking-for-git-at-regular-file into master 2026-09-27 11:43:29 +02:00 AGit
Owner

pgit.sh: Stop looking for .git at regular file

projects_dir is searched by looking for a directory named .git up the direcctory lineage. That does't work for worktrees, which are regular files pointing back to worktree git dir within the the real git directory.

Broaden the check from test -d .git to test -e .git.

#### pgit.sh: Stop looking for .git at regular file `projects_dir` is searched by looking for a directory named `.git` up the direcctory lineage. That does't work for worktrees, which are regular files pointing back to worktree git dir within the the real git directory. Broaden the check from `test -d .git` to `test -e .git`.
pgit.sh: Stop looking for .git at regular file
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m38s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m52s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m15s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m57s
CI / Packaging test (push) Successful in 0s
58767b663c
projects_dir is searched by looking for a directory named .git up the
direcctory lineage. That does't work for worktrees, which are regular files
pointing back to worktree git dir within the the real git directory.

Broaden the check from "test -d .git" to "test -e .git".

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-09-27 10:16:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
janware/jw-pkg!128
No description provided.