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.
This commit is contained in:
Colin Walters 2021-02-03 20:50:59 +00:00 committed by OpenShift Merge Robot
parent 9c3864b97e
commit 6fcfaee948

View File

@ -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