diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-26 22:51:24 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 11:59:45 +1100 |
commit | fbbd16bd829d6f2a8797453f2d05856b33d34d44 (patch) | |
tree | c49e5347d0cfa7dd7706724c8cc03942aece641f /pkg/commands/git.go | |
parent | bd2c1eef53fbc6d76a34c6cf5c340e7a2eb5851b (diff) |
use reflogs from state to work out branch recencies
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 2 |
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 { |