summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDavid Chen <weichen2000121@gmail.com>2020-01-07 00:03:49 +0800
committerGitHub <noreply@github.com>2020-01-07 00:03:49 +0800
commit983379d334a949cca4301a994ec8b3c89cb4d617 (patch)
treed7a726dde9be5410d9c059e46ca27ec3514a9ed6 /pkg
parentfd72a09d1e622566654ef4f2e3b1df7aeab60f12 (diff)
parent818134247ddcde74d7d33c534c7696c9481f3028 (diff)
Merge branch 'master' into custom-keybindings
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 7bcc651cb..08eb78edf 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -628,7 +628,7 @@ func (c *GitCommand) Diff(file *File, plain bool, cached bool) string {
func (c *GitCommand) ApplyPatch(patch string, flags ...string) error {
c.Log.Warn(patch)
- filepath := filepath.Join(c.Config.GetUserConfigDir(), utils.GetCurrentRepoName(), time.Now().Format(time.StampNano)+".patch")
+ filepath := filepath.Join(c.Config.GetUserConfigDir(), utils.GetCurrentRepoName(), time.Now().Format("Jan _2 15.04.05.000000000")+".patch")
if err := c.OSCommand.CreateFileWithContent(filepath, patch); err != nil {
return err
}