Fixed bug in block_duplicate_commit_message

* If the sha1 already exists in another branch, it would get blocked.