-
Sponsor
Sponsor jhipster/jhipster-lite
- Notifications
- Fork 89
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Loading status checks…
Prevent commit signing
Fix #3268
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| } | |||
| @Override | |||
| public void commitAll(JHipsterProjectFolder folder, GitCommitMessage message) { | |||
| Assert.notNull("folder", folder); | |||
|
|||
|
|||
| 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) { | |||