From 6fcfaee94884980fa294ba549b276c87b1720d03 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 3 Feb 2021 20:50:59 +0000 Subject: [PATCH] ci: Don't assume HEAD exists For some reason the way Prow clones the repo it doesn't exist; the git default of `..` should work though. --- ci/ci-commitmessage-submodules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/ci-commitmessage-submodules.sh b/ci/ci-commitmessage-submodules.sh index edc0d780..2e581262 100755 --- a/ci/ci-commitmessage-submodules.sh +++ b/ci/ci-commitmessage-submodules.sh @@ -16,8 +16,8 @@ dn=$(dirname $0) # It's very common for people to accidentally change submodules, and having this # requirement is a small hurdle to pass. -# If passed the commit, use that. Otherwise, just use HEAD. -HEAD=${1:-HEAD} +# If passed the commit, use that. Otherwise, just use the implicit default. +HEAD=${1:-} tmpd=$(mktemp -d) touch ${tmpd}/.tmpdir