Skip to content

Commit 0def5b6

Browse files
bartmangitster
authored andcommitted
hg-to-git: fix COMMITTER type-o
This script passes the author and committer to git-commit via environment variables, but it was missing the seccond T of COMMITTER in a few places. Signed-off-by: Bart Trojanowski <[email protected]> Acked-by: Stelian Pop <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c0eb604 commit 0def5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def getgitenv(user, date):
5959
elems = re.compile('(.*?)\s+<(.*)>').match(user)
6060
if elems:
6161
env += 'export GIT_AUTHOR_NAME="%s" ;' % elems.group(1)
62-
env += 'export GIT_COMMITER_NAME="%s" ;' % elems.group(1)
62+
env += 'export GIT_COMMITTER_NAME="%s" ;' % elems.group(1)
6363
env += 'export GIT_AUTHOR_EMAIL="%s" ;' % elems.group(2)
64-
env += 'export GIT_COMMITER_EMAIL="%s" ;' % elems.group(2)
64+
env += 'export GIT_COMMITTER_EMAIL="%s" ;' % elems.group(2)
6565
else:
6666
env += 'export GIT_AUTHOR_NAME="%s" ;' % user
67-
env += 'export GIT_COMMITER_NAME="%s" ;' % user
67+
env += 'export GIT_COMMITTER_NAME="%s" ;' % user
6868
env += 'export GIT_AUTHOR_EMAIL= ;'
69-
env += 'export GIT_COMMITER_EMAIL= ;'
69+
env += 'export GIT_COMMITTER_EMAIL= ;'
7070

7171
env += 'export GIT_AUTHOR_DATE="%s" ;' % date
7272
env += 'export GIT_COMMITTER_DATE="%s" ;' % date

0 commit comments

Comments
 (0)