{"thread":{"id":"34500","subject":"[PATCH] hg-to-git: --allow-empty-message in git commit","startedAt":"2013-07-20T16:33:20Z","lastAt":"2013-07-20T16:33:20Z","messageCount":1,"participants":["Maurício C Antunes"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"223850","messageId":"1374338000-5043-1-git-send-email-mauricio.antunes@gmail.com","threadId":"34500","inReplyTo":null,"subject":"[PATCH] hg-to-git: --allow-empty-message in git commit","fromName":"Maurício C Antunes","fromEmail":"mauricio.antunes@gmail.com","sentAt":"2013-07-20T16:33:20Z","receivedAt":"2013-07-20T16:33:20Z","isPatch":true,"sender":{"key":"mauricio.antunes@gmail.com","avatar":null},"body":"Do not fail to import mercurial commits with empty commit messages.\n\nSigned-off-by: Maurício C Antunes <mauricio.antunes@gmail.com>\n---\n contrib/hg-to-git/hg-to-git.py | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py\nindex 232625a..60dec86 100755\n--- a/contrib/hg-to-git/hg-to-git.py\n+++ b/contrib/hg-to-git/hg-to-git.py\n@@ -225,7 +225,7 @@ for cset in range(int(tip) + 1):\n     os.system('git ls-files -x .hg --deleted | git update-index --remove --stdin')\n \n     # commit\n-    os.system(getgitenv(user, date) + 'git commit --allow-empty -a -F %s' % filecomment)\n+    os.system(getgitenv(user, date) + 'git commit --allow-empty --allow-empty-message -a -F %s' % filecomment)\n     os.unlink(filecomment)\n \n     # tag\n-- \n1.8.3.3\n"}]}