threads / patch / 34500

patchhg-to-git: --allow-empty-message in git commit

Subject: [PATCH] hg-to-git: --allow-empty-message in git commit

## tl;dr

One message between Jul 20, 2013 and Jul 20, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Maurício C Antunes· Jul 20, 2013, 16:33 UTC · lore
Do not fail to import mercurial commits with empty commit messages.
Signed-off-by: Maurício C Antunes <mauricio.antunes@gmail.com>
---
 contrib/hg-to-git/hg-to-git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to contrib/hg-to-git/hg-to-git.py +1 −1
diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py
index 232625a..60dec86 100755
--- a/contrib/hg-to-git/hg-to-git.py
+++ b/contrib/hg-to-git/hg-to-git.py
@@ -225,7 +225,7 @@ for cset in range(int(tip) + 1):
     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
-- 
1.8.3.3

← back to recent threads