Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
hg-to-git: --allow-empty-message in git commit
author
Maurício C Antunes
<mauricio.antunes@gmail.com>
Sat, 20 Jul 2013 16:33:20 +0000
(13:33 -0300)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 23 Jul 2013 19:17:23 +0000
(12:17 -0700)
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>
contrib/hg-to-git/hg-to-git.py
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
117eea7
)
diff --git
a/contrib/hg-to-git/hg-to-git.py
b/contrib/hg-to-git/hg-to-git.py
index 232625a7b72aef88ef9cc0285eb7208ce38a2138..60dec86d37efbffb557e611cde4bf2b2dbfbf478 100755
(executable)
--- 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