summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2010-08-26 15:00:58 -0400
committerCode Review <codereview-daemon@eclipse.org>2010-08-26 15:00:58 -0400
commit7d9bfa390f5a329f7bfb703a91b4bfb8b4efec7c (patch)
tree903ea37888bd5de7808111e22d1e4598f08806a9 /org.eclipse.jgit.pgm
parent1edbefc5fa2c9d208b51060b9af2ebb89a6973af (diff)
parent80c622c49c22e6d303856b8cb916b5fd0da86712 (diff)
downloadjgit-7d9bfa390f5a329f7bfb703a91b4bfb8b4efec7c.tar.gz
jgit-7d9bfa390f5a329f7bfb703a91b4bfb8b4efec7c.zip
Merge "Fix parsing of multiple authors in PersonIdent."
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Commit.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Commit.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Commit.java
index b26dde3a4a..dd33a161e9 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Commit.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Commit.java
@@ -47,6 +47,7 @@ import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.PersonIdent;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.revwalk.RevCommit;
+import org.eclipse.jgit.util.RawParseUtils;
import org.kohsuke.args4j.Option;
@Command(common = true, usage = "usage_recordChangesToRepository")
@@ -65,7 +66,7 @@ class Commit extends TextBuiltin {
ConcurrentRefUpdateException, JGitInternalException, Exception {
CommitCommand commitCmd = new Git(db).commit();
if (author != null)
- commitCmd.setAuthor(new PersonIdent(author));
+ commitCmd.setAuthor(RawParseUtils.parsePersonIdent(author));
if (message != null)
commitCmd.setMessage(message);
Ref head = db.getRef(Constants.HEAD);