Disabled allowing empty git commits

This commit is contained in:
Abdelilah El Aissaoui 2021-12-06 23:05:06 +01:00
parent ed55ba2814
commit 2a43cdeca8

View File

@ -93,6 +93,7 @@ class StatusManager @Inject constructor() {
suspend fun commit(git: Git, message: String) = withContext(Dispatchers.IO) { suspend fun commit(git: Git, message: String) = withContext(Dispatchers.IO) {
git.commit() git.commit()
.setMessage(message) .setMessage(message)
.setAllowEmpty(false)
.call() .call()
loadStatus(git) loadStatus(git)