mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
refactor(Repository): using temp file to store commit message instead of file in .git folder
This commit is contained in:
parent
005073f847
commit
b1310a5fd0
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ namespace SourceGit.Git {
|
|||
public bool DoCommit(string message, bool amend) {
|
||||
isWatcherDisabled = true;
|
||||
|
||||
var file = System.IO.Path.Combine(Path, ".git", "COMMITMESSAGE");
|
||||
var file = System.IO.Path.GetTempFileName();
|
||||
File.WriteAllText(file, message);
|
||||
|
||||
var args = $"commit --file=\"{file}\"";
|
||||
|
|
Loading…
Reference in a new issue