pcc added a comment. Actually, I think that won't work because it looks like `.git/HEAD` does not get updated if a commit is made on a branch. An alternative solution would be to touch `.git/logs/HEAD` if it does not exist. Repository: rL LLVM https://reviews.llvm.org/D31985