Skip to content
Permalink
Browse files
Prevent commit signing
Fix #3268
hdurix committed 26 days ago
1 parent 8c22768 commit 2b3879966bb1a7a54e8fa90a207e81f37fd1332f
Showing 1 changed file with 1 addition and 1 deletion.
}
@Override
public void commitAll(JHipsterProjectFolder folder, GitCommitMessage message) {
Assert.notNull("folder", folder);

COLLECTOR-SAHAB / covering test: JGitGitRepositoryTest

folder.folder=/tmp/jhlite-test/b3411b1b-b5ee-4a46-a338-671a9ecc8fee only occurs in the patched version.

COLLECTOR-SAHAB / covering test: JGitGitRepositoryTest

folder.folder=/tmp/jhlite-test/7d39c7ea-90b3-4730-a941-05cf6b2fb2a6 only occurs in the original version.

Assert.notNull("message", message);
File folderFile = folderFile(folder);
try (Git gitFolder = Git.open(folderFile);) {
gitFolder.add().addFilepattern(".").call();

gitFolder.commit().setMessage(message.get()).call();
gitFolder.commit().setSign(false).setMessage(message.get()).call();
} catch (IOException | GitAPIException | JGitInternalException e) {
throw new GitCommitException("Can't commit :" + e.getMessage(), e);
}
}
private File folderFile(JHipsterProjectFolder folder) {

0 comments on commit 2b38799

Please sign in to comment.