]> git.ipfire.org Git - thirdparty/git.git/commit
ci: work around old records of GitHub runs
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 11 Oct 2020 21:27:10 +0000 (21:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Oct 2020 19:27:10 +0000 (12:27 -0700)
commitd0ff1a3cbc579947c5daeeb5ac433885a0bdc88e
tree889107108bbe3710d26db27977080904e7f1349d
parent4463ce75b7eea47f9b484b05957def655d3f46d5
ci: work around old records of GitHub runs

Apparently older GitHub runs at least _sometimes_ lack information about
the `head_commit` (and therefore the `ci-config` check will fail with
"TypeError: Cannot read property 'tree_id' of null") in the check added
in 7d78d5fc1a9 (ci: skip GitHub workflow runs for already-tested
commits/trees, 2020-10-08).

Let's work around this by adding a defensive condition.

Reported-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/main.yml