From: MaurĂ­cio C Antunes Date: Sat, 20 Jul 2013 16:33:20 +0000 (-0300) Subject: hg-to-git: --allow-empty-message in git commit X-Git-Tag: v1.8.4-rc1~5^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1611eed6e5071acd24b97933ac0d845db87ec7df?hp=--cc 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 Signed-off-by: Junio C Hamano --- 1611eed6e5071acd24b97933ac0d845db87ec7df diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index 232625a7b7..60dec86d37 100755 --- a/contrib/hg-to-git/hg-to-git.py +++ b/contrib/hg-to-git/hg-to-git.py @@ -225,7 +225,7 @@ def getgitenv(user, date): os.system('git ls-files -x .hg --deleted | git update-index --remove --stdin') # commit - os.system(getgitenv(user, date) + 'git commit --allow-empty -a -F %s' % filecomment) + os.system(getgitenv(user, date) + 'git commit --allow-empty --allow-empty-message -a -F %s' % filecomment) os.unlink(filecomment) # tag