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

View file

@ -77,7 +77,7 @@ set_global_variables()
projects_dir=`pwd`
# If we're in a toplevel directory, suppose projects_dir == project_dirs,
# i.e. we only want to target this Git repo
if [ ! -d .git ]; then
if [ ! -e .git ]; then
while [ ! -r Makefile ] || ! grep -q 'include $(JWBDIR)/make/projects-dir\.mk\|some-random-string-to-id-this-makefile' Makefile; do
[ "$projects_dir" = / ] && fatal "Failed to find projects directory"
projects_dir=`dirname $projects_dir`