hg-to-git: --allow-empty-message in git commit
Do not fail to import mercurial commits with empty commit messages. Signed-off-by: Maurício C Antunes <mauricio.antunes@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Maurício C Antunes committed
Jul 20, 2013 at 13:33 UTC
1611eed6e5071acd24b97933ac0d845db87ec7df
1 file changed
+1
-1
contrib/hg-to-git/hg-to-git.py
+1
-1
@@ -225,7 +225,7 @@ for cset in range(int(tip) + 1):
225
os.system('git ls-files -x .hg --deleted | git update-index --remove --stdin')
226
227
# commit
228
- os.system(getgitenv(user, date) + 'git commit --allow-empty -a -F %s' % filecomment)
228
+ os.system(getgitenv(user, date) + 'git commit --allow-empty --allow-empty-message -a -F %s' % filecomment)
229
os.unlink(filecomment)
230
231
# tag