From fca4b977171a4f510def0b20a5d9b4f5506df6c8 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 29 Oct 2016 00:49:07 +0200 Subject: [gitflow] Set PersonIdent when creating a tag while finishing release EGit gitflow didn't set this so neither tagger nor timestamp of the annotated tag it creates were set. Bug: 506673 Change-Id: I1df51ab802dfa8bc98b64e10dde0e43e8d10ef40 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/egit/gitflow/op/AbstractVersionFinishOperation.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'org.eclipse.egit.gitflow') diff --git a/org.eclipse.egit.gitflow/src/org/eclipse/egit/gitflow/op/AbstractVersionFinishOperation.java b/org.eclipse.egit.gitflow/src/org/eclipse/egit/gitflow/op/AbstractVersionFinishOperation.java index bfc5cdccfc..c472259d74 100644 --- a/org.eclipse.egit.gitflow/src/org/eclipse/egit/gitflow/op/AbstractVersionFinishOperation.java +++ b/org.eclipse.egit.gitflow/src/org/eclipse/egit/gitflow/op/AbstractVersionFinishOperation.java @@ -19,6 +19,7 @@ import org.eclipse.egit.core.op.TagOperation; import org.eclipse.egit.gitflow.GitFlowRepository; import org.eclipse.egit.gitflow.WrongGitFlowStateException; import org.eclipse.egit.gitflow.internal.CoreText; +import org.eclipse.jgit.lib.PersonIdent; import org.eclipse.jgit.lib.TagBuilder; import org.eclipse.jgit.revwalk.RevCommit; @@ -81,6 +82,7 @@ abstract public class AbstractVersionFinishOperation extends GitFlowOperation { String name, String message) throws CoreException { TagBuilder tag = new TagBuilder(); tag.setTag(name); + tag.setTagger(new PersonIdent(repository.getRepository())); tag.setMessage(message); tag.setObjectId(head); new TagOperation(repository.getRepository(), tag, false) -- cgit v1.2.3