summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorGlenn Vriesman <glenn.vriesman@gmail.com>2020-02-19 16:28:55 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-20 08:34:01 +1100
commit6fc3290a05a76f3e68fcbf5500c29a0c6f13da02 (patch)
tree512740dd604d9b6dbc3439cb674cb516e058f204 /pkg/commands
parent66e6369c284e96ed5af5b6d178b9270f59b99e56 (diff)
Reflog: Use 20 sha digits instead of 7
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
Diffstat (limited to 'pkg/commands')
-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 7f9849041..9b4fbd544 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -1105,7 +1105,7 @@ func (c *GitCommand) FetchRemote(remoteName string) error {
}
func (c *GitCommand) GetReflogCommits() ([]*Commit, error) {
- output, err := c.OSCommand.RunCommandWithOutput("git reflog")
+ output, err := c.OSCommand.RunCommandWithOutput("git reflog --abbrev=20")
if err != nil {
return nil, err
}