Skip to content

Commit 43f09d3

Browse files
committed
Generate changelog with all commits.
Fixes root project not having any changelog. This is a partial fix see #5
1 parent b7f8fa7 commit 43f09d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/minecraftforge/gitver/internal/GitVersionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public String generateChangelog(@Nullable String start, @Nullable String url, bo
120120
throw new GitVersionExceptionInternal("Opened repository has no commits");
121121

122122
var head = GitUtils.getHead(this.git);
123-
return GitChangelog.generateChangelogFromTo(this.git, Util.orElse(url, () -> GitUtils.buildProjectUrl(this.git)), plainText, from, head, this.tagPrefix, this.getSubprojectPaths());
123+
return GitChangelog.generateChangelogFromTo(this.git, Util.orElse(url, () -> GitUtils.buildProjectUrl(this.git)), plainText, from, head, this.tagPrefix, List.of());
124124
} catch (GitVersionException | GitAPIException | IOException e) {
125125
if (this.strict) throw new GitVersionExceptionInternal("Failed to generate the changelog", e);
126126

0 commit comments

Comments
 (0)