summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-12-16 12:01:51 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-12-21 13:31:35 +0000
commit002ed911052ecc528bd584c9a94b75090d247e78 (patch)
treee9e1b962875db739efc567e84918f7edbab4bbf5
parent613347a31f9d56cfd2a204b2e3f030bbf70ceeb6 (diff)
don't print an extra newline in diff header parse failure message
Change-Id: Ibe229236bc56e9b32dfd8c8f508bc8b7b0b4736a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 550ba32..3fbe293 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -614,7 +614,7 @@ while (<DIFF>) {
} elsif (/^diff --cc (.+)$/) {
$merge = 1;
} else {
- print STDERR "Warning: cannot parse diff header '".$_."'\n";
+ print STDERR "Warning: cannot parse diff header: ".$_;
next;
}
$file = $1;