summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-26 22:51:24 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-28 11:59:45 +1100
commitfbbd16bd829d6f2a8797453f2d05856b33d34d44 (patch)
treec49e5347d0cfa7dd7706724c8cc03942aece641f /pkg/commands/git.go
parentbd2c1eef53fbc6d76a34c6cf5c340e7a2eb5851b (diff)
use reflogs from state to work out branch recencies
Diffstat (limited to 'pkg/commands/git.go')
-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 95bd380bd..42b075915 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -1126,7 +1126,7 @@ func (c *GitCommand) FetchRemote(remoteName string) error {
func (c *GitCommand) GetNewReflogCommits(lastReflogCommit *Commit) ([]*Commit, error) {
commits := make([]*Commit, 0)
re := regexp.MustCompile(`(\w+).*HEAD@\{([^\}]+)\}: (.*)`)
- cmd := c.OSCommand.ExecutableFromString("git reflog --abbrev=20 --date=iso")
+ cmd := c.OSCommand.ExecutableFromString("git reflog --abbrev=20 --date=unix")
err := RunLineOutputCmd(cmd, func(line string) (bool, error) {
match := re.FindStringSubmatch(line)
if len(match) <= 1 {