Fix prompting commit msg only after git diff is not empty