Skip to content

Commit

Permalink
FIXED: git add with no re-normalization does not seem to catch every …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
WinPlay02 committed Sep 5, 2023
1 parent 27fe05e commit 7a16ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/dex/mcgitmaker/RepoManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void commitDecompiled(McVersion mcVersion, MappingHelper.MappingFlavour mappingF

// Make commit
MiscHelper.executeTimedStep("Committing files to repo...", () -> {
git.add().addFilepattern(".").setRenormalize(false).call();
git.add().addFilepattern(".").setRenormalize(true).call();
Date version_date = new Date(OffsetDateTime.parse(mcVersion.time).toInstant().toEpochMilli());
PersonIdent author = new PersonIdent(GitCraft.config.gitUser, GitCraft.config.gitMail, version_date, TimeZone.getTimeZone("UTC"));
git.commit().setMessage(mcVersion.toCommitMessage()).setAuthor(author).setCommitter(author).setSign(false).call();
Expand Down

0 comments on commit 7a16ef4

Please sign in to comment.