Lazygit: Panic error on CentOS 7 x86_64

Created on 20 Mar 2020  路  9Comments  路  Source: jesseduffield/lazygit

Describe the bug
CentOS Linux release 7.7.1908 (Core)
Tool is built from source: go get github.com/jesseduffield/lazygit
Go version: go version go1.13.8 linux/amd64
Git version: git version 1.8.3.1

To Reproduce
Steps to reproduce the behavior:

  1. cd /tmp/
  2. lazygit
  3. press 'y' to create repo
  4. See error

Expected behavior
.git created

Desktop (please complete the following information):

  • OS: CentOS Linux release 7.7.1908 (Core)
  • Lazygit Version [commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64]
  • The last commit id if you built project from sources (3aab37611a26834af8348441d864ecad3eb15674)

Additional context
[builder@build tmp]$ lazygit
Not in a git repository. Create a new git repository? (y/n): y
panic: error: unknown option `format=%(HEAD)|%(refname:short)|%(upstream:short)|%(upstream:track)'
usage: git branch [options] [-r | -a] [--merged | --no-merged]
or: git branch [options] [-l] [-f] []
or: git branch [options] [-r] (-d | -D) ...
or: git branch [options] (-m | -M) []

Generic options
-v, --verbose show hash and subject, give twice for upstream branch
-q, --quiet suppress informational messages
-t, --track set up tracking mode (see git-pull(1))
--set-upstream change upstream info
-u, --set-upstream-to
change the upstream info
--unset-upstream Unset the upstream info
--color[=] use colored output
-r, --remotes act on remote-tracking branches
--contains print only branches that contain the commit
--abbrev[=] use digits to display SHA-1s

Specific git-branch actions:
-a, --all list both remote-tracking and local branches
-d, --delete delete fully merged branch
-D delete branch (even if not merged)
-m, --move move/rename a branch and its reflog
-M move/rename a branch, even if target exists
--list list branch names
-l, --create-reflog create the branch's reflog
--edit-description edit the description for the branch
-f, --force force creation (when already exists)
--no-merged print only not merged branches
--merged print only merged branches
--column[=