diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2021-09-27 22:39:20 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-09-29 22:05:58 +1000 |
commit | 663c036ca5c5639c772a3f37ccef50ff03979337 (patch) | |
tree | c300e7ea60e80148244deb7627de1410b339522a /pkg/commands/files.go | |
parent | c8e9d1b4fcde97dbdeae3463ef80da2c61fe5371 (diff) |
Save patch files in TempDir
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r-- | pkg/commands/files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go index 5ad6eeb66..74beb9fb7 100644 --- a/pkg/commands/files.go +++ b/pkg/commands/files.go @@ -224,7 +224,7 @@ func (c *GitCommand) WorktreeFileDiffCmdStr(node models.IFile, plain bool, cache } func (c *GitCommand) ApplyPatch(patch string, flags ...string) error { - filepath := filepath.Join(c.Config.GetUserConfigDir(), utils.GetCurrentRepoName(), time.Now().Format("Jan _2 15.04.05.000000000")+".patch") + filepath := filepath.Join(c.Config.GetTempDir(), utils.GetCurrentRepoName(), time.Now().Format("Jan _2 15.04.05.000000000")+".patch") c.Log.Infof("saving temporary patch to %s", filepath) if err := c.OSCommand.CreateFileWithContent(filepath, patch); err != nil { return err |