mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Remove autocommit from backend
This commit is contained in:
@@ -190,11 +190,6 @@ func (fs *FileSystem) SaveFile(filePath string, content []byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if fs.Settings.Settings.GitAutoCommit && fs.GitRepo != nil {
|
|
||||||
message := strings.Replace(fs.Settings.Settings.GitCommitMsgTemplate, "${filename}", filePath, -1)
|
|
||||||
return fs.StageCommitAndPush(message)
|
|
||||||
}
|
|
||||||
|
|
||||||
return os.WriteFile(fullPath, content, 0644)
|
return os.WriteFile(fullPath, content, 0644)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user