Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/nightly-release-plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ if [ -z "$REPOSITORY" ]; then
echo "usage: $0 <repository> [branch]" >&2
exit 2
fi
if [ ! -d "$REPOSITORY/.git" ]; then
# `.git` may be a directory (normal clone) or a file (worktree/submodule), so
# ask git itself rather than testing for the directory.
if ! git -C "$REPOSITORY" rev-parse --git-dir >/dev/null 2>&1; then
echo "error: $REPOSITORY is not a git checkout" >&2
exit 1
fi
Expand Down
Loading