diff options
author | Shawn Pearce <spearce@spearce.org> | 2010-08-26 15:00:58 -0400 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2010-08-26 15:00:58 -0400 |
commit | 7d9bfa390f5a329f7bfb703a91b4bfb8b4efec7c (patch) | |
tree | 903ea37888bd5de7808111e22d1e4598f08806a9 /org.eclipse.jgit.pgm | |
parent | 1edbefc5fa2c9d208b51060b9af2ebb89a6973af (diff) | |
parent | 80c622c49c22e6d303856b8cb916b5fd0da86712 (diff) | |
download | jgit-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.java | 3 |
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); |