mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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) {
|
public bool DoCommit(string message, bool amend) {
|
||||||
isWatcherDisabled = true;
|
isWatcherDisabled = true;
|
||||||
|
|
||||||
var file = System.IO.Path.Combine(Path, ".git", "COMMITMESSAGE");
|
var file = System.IO.Path.GetTempFileName();
|
||||||
File.WriteAllText(file, message);
|
File.WriteAllText(file, message);
|
||||||
|
|
||||||
var args = $"commit --file=\"{file}\"";
|
var args = $"commit --file=\"{file}\"";
|
||||||
|
|
Loading…
Reference in a new issue