* Scripts/commit-log-editor: Fix perl warning for people who have no
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2010 00:10:20 +0000 (00:10 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2010 00:10:20 +0000 (00:10 +0000)
value for SVN_LOG_EDITOR or CVS_LOG_EDITOR.

Reviewed by John Sullivan.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66059 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/commit-log-editor

index 8a4f084..fa65f78 100644 (file)
@@ -1,3 +1,10 @@
+2010-08-25  Darin Adler  <darin@apple.com>
+
+        Reviewed by John Sullivan.
+
+        * Scripts/commit-log-editor: Fix perl warning for people who have no
+        value for SVN_LOG_EDITOR or CVS_LOG_EDITOR.
+
 2010-08-25  Ojan Vafai  <ojan@chromium.org>
 
         Reviewed by Eric Seidel.
index 1be0fd0..f40295d 100755 (executable)
@@ -63,7 +63,7 @@ my $baseDir = baseProductDir();
 
 my $editor = $ENV{SVN_LOG_EDITOR};
 $editor = $ENV{CVS_LOG_EDITOR} if !$editor;
-$editor = "" if isCommitLogEditor($editor);
+$editor = "" if $editor && isCommitLogEditor($editor);
 
 my $splitEditor = 1;
 if (!$editor) {