pgit.sh: Stop looking for .git at regular file #128
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ set_global_variables()
|
||||||
projects_dir=`pwd`
|
projects_dir=`pwd`
|
||||||
# If we're in a toplevel directory, suppose projects_dir == project_dirs,
|
# If we're in a toplevel directory, suppose projects_dir == project_dirs,
|
||||||
# i.e. we only want to target this Git repo
|
# 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
|
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" = / ] && fatal "Failed to find projects directory"
|
||||||
projects_dir=`dirname $projects_dir`
|
projects_dir=`dirname $projects_dir`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue