-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
[macOS 14.1.1, zsh, git-extras v7.1.0]
If I run git standup in a parent directory of some git-repositories.
git standup fails with:
find: : No such file or directory
If I run bash -x /usr/local/bin/git-standup, I see:
++ find '' . -maxdepth 2 -mindepth 0 -name .git
find: : No such file or directory
That's because of the quoted empty value of: $INCLUDE_LINKS in
PROJECT_DIRS=$(find "$INCLUDE_LINKS" . -maxdepth "$MAXDEPTH" -mindepth 0 -name .git)
(https://github.com/tj/git-extras/blob/main/bin/git-standup#L243)
Since $INCLUDE_LINKS is only set if -L option is used, IMO there should be a handling of the empty value or the variable should have some valid value which find can handle.
(https://github.com/tj/git-extras/blob/main/bin/git-standup#L124)
akosma
Metadata
Metadata
Assignees
Labels
No labels