mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-04 14:49:44 +08:00
GitCommit: Do not allow empty commits
This commit is contained in:
@ -36,6 +36,7 @@ public class GitCommitTask extends AsyncTask<String, Void, Void> {
|
||||
CommitCommand commitCommand = git.commit();
|
||||
commitCommand.setAuthor(authorName, authorEmail);
|
||||
commitCommand.setMessage(message);
|
||||
commitCommand.setAllowEmpty(false);
|
||||
commitCommand.call();
|
||||
|
||||
} catch (TransportException e) {
|
||||
|
Reference in New Issue
Block a user