Skip to content

Commit dce1ffb

Browse files
committed
fix: git-standup find error (#1106)
1 parent 5020890 commit dce1ffb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/git-standup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ if [[ $in_git_repo != 0 ]]; then
240240
## Set delimiter to newline for the loop
241241
IFS=$'\n'
242242
## Recursively search for git repositories
243-
PROJECT_DIRS=$(find "$INCLUDE_LINKS" . -maxdepth "$MAXDEPTH" -mindepth 0 -name .git)
243+
if [ -z "${INCLUDE_LINKS}" ]; then
244+
PROJECT_DIRS=$(find . -maxdepth "$MAXDEPTH" -mindepth 0 -name .git)
245+
else
246+
PROJECT_DIRS=$(find "$INCLUDE_LINKS" . -maxdepth "$MAXDEPTH" -mindepth 0 -name .git)
247+
fi
244248

245249
# Fetch the latest commits, if required
246250
if [ "$FETCH_LAST_COMMIT" = true ]; then

0 commit comments

Comments
 (0)