aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-03-02 11:46:25 +0100
committerSimon Josefsson <simon@josefsson.org>2007-03-02 11:46:25 +0100
commitd8b3a8995a2976b63c01ee1b27a47d2c645b0fa8 (patch)
treebb2e1ad918491960a81abef8005e0a18540250fa
parent665b25c495a9d41f22ae08c3c0034de5dd1d7b61 (diff)
downloadgit2cl-d8b3a8995a2976b63c01ee1b27a47d2c645b0fa8.zip
git2cl-d8b3a8995a2976b63c01ee1b27a47d2c645b0fa8.tar.gz
git2cl-d8b3a8995a2976b63c01ee1b27a47d2c645b0fa8.tar.bz2
Handle empty lines in log entries.
Reported by "Andreas Herrmann" <andreas.herrmann3@amd.com>.
-rwxr-xr-xgit2cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git2cl b/git2cl
index 43932eb..5836936 100755
--- a/git2cl
+++ b/git2cl
@@ -243,9 +243,9 @@ while (<>) {
}
$state = 1 if (m,^$,);
} elsif ($state == 1) {
+ $state = 2 if (m,^$,);
s/^ //g;
$comment = $comment . $_;
- $state = 2 if (m,^$,);
} elsif ($state == 2) {
if (m,^([0-9]+)\t([0-9]+)\t(.*)$,) {
push @files, $3;