Skip to content

Commit f7997cd

Browse files
fix: handle missing HEAD^ in vercel ignore script
1 parent 51a6948 commit f7997cd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vercel-ignore.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Handle initial commits and shallow clones
2+
if ! git rev-parse --verify HEAD^ >/dev/null 2>&1; then
3+
exit 1
4+
fi
5+
16
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD)
27

38
if [ -z "$CHANGED_FILES" ]; then

0 commit comments

Comments
 (0)