Skip to content

Commit 52a5375

Browse files
author
S L
committed
make it simple and just let each class have a single instance of the jGitCommon
1 parent 3778f3a commit 52a5375

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/main/java/pl/project13/jgit/DescribeCommand.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private DescribeCommand(Repository repo, boolean verbose) {
105105
super(repo);
106106
initDefaultLoggerBridge(verbose);
107107
setVerbose(verbose);
108+
this.jGitCommon = new JGitCommon();
108109
}
109110

110111
private void initDefaultLoggerBridge(boolean verbose) {
@@ -123,12 +124,6 @@ public DescribeCommand withLoggerBridge(LoggerBridge bridge) {
123124
return this;
124125
}
125126

126-
@NotNull
127-
public DescribeCommand withJGitCommon(JGitCommon jGitCommon) {
128-
this.jGitCommon = jGitCommon;
129-
return this;
130-
}
131-
132127
/**
133128
* <pre>--always</pre>
134129
*

src/main/java/pl/project13/maven/git/JGitProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ protected void finalCleanUp() {
234234
DescribeResult describeResult = DescribeCommand
235235
.on(repository)
236236
.withLoggerBridge(super.loggerBridge)
237-
.withJGitCommon(jGitCommon)
238237
.setVerbose(super.verbose)
239238
.apply(super.gitDescribe)
240239
.call();

0 commit comments

Comments
 (0)