Changeset 46927 in webkit
- Timestamp:
- Aug 7, 2009 4:34:46 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r46912 r46927 1 2009-08-07 Darin Adler <darin@apple.com> 2 3 * Scripts/commit-log-editor: Fix unchecked access to environment 4 variable that may not be there. 5 1 6 2009-08-07 Mark Rowe <mrowe@apple.com> 2 7 -
trunk/WebKitTools/Scripts/commit-log-editor
r46899 r46927 94 94 } 95 95 96 if (!isGit() || (/^#/)) {96 if (!isGit() || /^#/) { # 97 97 $logContents .= $_; 98 98 } else { … … 109 109 # different from perl's line endings. 110 110 my $endl = "\n"; 111 if ($logContents =~ /(\r?\n)/g) { 112 $endl = $1; 113 } 111 $endl = $1 if $logContents =~ /(\r?\n)/; 114 112 115 113 my $keepExistingLog = 1; … … 150 148 $blankLines = ""; 151 149 152 # Remove i dentation spaces153 $line =~ s/^ \s{8}//;150 # Remove indentation spaces 151 $line =~ s/^ {8}//; 154 152 155 153 # Save the reviewed by line … … 172 170 # Attempt to insert the "patch by" line, after the first blank line. 173 171 if ($previousLineWasBlank && $hasAuthorInfoToWrite && $lineCount > 0) { 174 my $authorAndCommitterAreSamePerson = $ email eq $ENV{'EMAIL_ADDRESS'};172 my $authorAndCommitterAreSamePerson = $ENV{EMAIL_ADDRESS} && $email eq $ENV{EMAIL_ADDRESS}; 175 173 if (!$authorAndCommitterAreSamePerson) { 176 174 $contents .= "Patch by $author <$email> on $date\n";
Note: See TracChangeset
for help on using the changeset viewer.