Skip to content

Commit a8b9f41

Browse files
author
cos
committed
Fix missing adaption to --no-depth for PR fboender#53
Pull-request fboender#53 broke `--no-depth`. When searching for GIT_DIR (.git) rather than parent PROJ_DIR (actual repo), the max-depth clearly also needs to be increased.
1 parent 9429c27 commit a8b9f41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mgitstatus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ if [ "$NO_DEPTH" -eq 1 ]; then
322322
# Do not recurse at all. Really, this should have been the '-d 0' option,
323323
# but that's already used for infinite recursion, and we don't want to
324324
# break backwards compatibility.
325-
FIND_OPTS="$FIND_OPTS -maxdepth 0"
325+
FIND_OPTS="$FIND_OPTS -maxdepth 1"
326326
fi
327327

328328

0 commit comments

Comments
 (0)