diff options
Diffstat (limited to 'Tools/Scripts/commit-log-editor')
| -rwxr-xr-x | Tools/Scripts/commit-log-editor | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Tools/Scripts/commit-log-editor b/Tools/Scripts/commit-log-editor index 466b71ca8..e79056939 100755 --- a/Tools/Scripts/commit-log-editor +++ b/Tools/Scripts/commit-log-editor @@ -39,7 +39,6 @@ use VCSUtils; use webkitdirs; sub createCommitMessage(@); -sub fixEnvironment(); sub loadTermReadKey(); sub normalizeLineEndings($$); sub patchAuthorshipString($$$); @@ -86,8 +85,6 @@ if (!$log) { printUsageAndExit(); } -fixEnvironment(); - my $baseDir = baseProductDir(); my $editor = $ENV{SVN_LOG_EDITOR}; @@ -317,21 +314,6 @@ sub createCommitMessage(@) return join '', @result; } -sub fixEnvironment() -{ - return unless isMsys() && isGit(); - - # When this script gets run from inside git commit, msys-style paths in the - # environment will have been turned into Windows-style paths with forward - # slashes. This screws up functions like File::Spec->rel2abs, which seem to - # rely on $PWD having an msys-style path. We convert the paths back to - # msys-style here by transforming "c:/foo" to "/c/foo" (e.g.). See - # <http://webkit.org/b/48527>. - foreach my $key (keys %ENV) { - $ENV{$key} =~ s#^([[:alpha:]]):/#/$1/#; - } -} - sub loadTermReadKey() { eval { require Term::ReadKey; }; |
