Skip to content

Commit 1611eed

Browse files
mauriciocagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 117eea7 commit 1611eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/hg-to-git/hg-to-git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def getgitenv(user, date):
225225
os.system('git ls-files -x .hg --deleted | git update-index --remove --stdin')
226226

227227
# 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)
229229
os.unlink(filecomment)
230230

231231
# tag

0 commit comments

Comments
 (0)