Due to how the checking script is run in docker, worktree_rev is ambiguous when running rev-parse. We're running it in the checked out worktree, so we can use HEAD instead, which is unambiguous.