aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorStefan Lay <stefan.lay@sap.com>2013-11-21 14:46:12 +0100
committerStefan Lay <stefan.lay@sap.com>2013-11-21 14:47:24 +0100
commit4feace2b9ecb90fe591c4317403f6d8e6309287e (patch)
tree2f992c1be8679fd25aac61972491f4dd08885bd0 /org.eclipse.jgit
parent7dce16018e05c0a094b3eb20009e0438764f046e (diff)
downloadjgit-4feace2b9ecb90fe591c4317403f6d8e6309287e.tar.gz
jgit-4feace2b9ecb90fe591c4317403f6d8e6309287e.zip
Fix parsing Rebase todo lines when commit message is missing
Bug: 422253 Change-Id: I9739b16c91d2df31a481360a712d3479a4eeee2e Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java
index cac67e11e9..ef61e22032 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java
@@ -197,6 +197,8 @@ public class RebaseTodoFile {
}
tokenCount++;
}
+ if (tokenCount == 2)
+ return new RebaseTodoLine(action, commit, ""); //$NON-NLS-1$
return null;
}