mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-21 08:22:05 +03:00
Remove git version specific code for versions we no longer support
This commit is contained in:
@ -190,11 +190,7 @@ branch refs/heads/mybranch-worktree
|
||||
}
|
||||
|
||||
getRevParseArgs := func() []string {
|
||||
args := []string{"rev-parse"}
|
||||
if version.IsAtLeast(2, 31, 0) {
|
||||
args = append(args, "--path-format=absolute")
|
||||
}
|
||||
return args
|
||||
return []string{"rev-parse", "--path-format=absolute"}
|
||||
}
|
||||
|
||||
s.before(runner, fs, getRevParseArgs)
|
||||
|
Reference in New Issue
Block a user