bugfix -- fixed wrong behavior when tmp file is not empty, but there's
no git hash in it.