Skip to content

Commit

Permalink
hg-to-git: --allow-empty-message in git commit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maurício C Antunes authored and Junio C Hamano committed Jul 23, 2013
1 parent 117eea7 commit 1611eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hg-to-git/hg-to-git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1611eed

Please sign in to comment.