author | Eric Wong <normalperson@yhbt.net> | |
Sun, 16 Dec 2007 03:08:22 +0000 (19:08 -0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Wed, 19 Dec 2007 08:04:21 +0000 (00:04 -0800) | ||
commit | ad94802a7bc599ade73ec0b04c61b2f80b3c1b23 | |
tree | d80b965c187a60d225f09ea83ce432250ca0aafe | tree | snapshot |
parent | ce85b053d827e2f7c2ee2683cc09393e4768cc22 | commit | diff |
git-svn: avoid leaving leftover committer/author info in rebase
We set the 6 environment variables for controlling
committer/author email/name/time for every commit.
We do this in the parent process to be passed to
git-commit-tree, because open3() doesn't afford us the control
of doing it only in the child process. This means we leave them
hanging around in the main process until the next revision comes
around and all 6 environment variables are overwridden again.
Unfortunately, for the last commit, leaving them hanging around
means the git-rebase invocation will pick it up, rewriting the
rebased commit with incorrect author information. This should fix
it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
We set the 6 environment variables for controlling
committer/author email/name/time for every commit.
We do this in the parent process to be passed to
git-commit-tree, because open3() doesn't afford us the control
of doing it only in the child process. This means we leave them
hanging around in the main process until the next revision comes
around and all 6 environment variables are overwridden again.
Unfortunately, for the last commit, leaving them hanging around
means the git-rebase invocation will pick it up, rewriting the
rebased commit with incorrect author information. This should fix
it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | diff | blob | history |