github / git-sizer

Compute various size metrics for a Git repository, flagging those that might cause problems
MIT License
3.48k stars 139 forks source link

git.Repository: invoke `git config` more backwards-compatibly #105

Closed mhagger closed 1 year ago

mhagger commented 1 year ago

Some git-config options that we were using (--default, --type=bool, and --type=int) were only added in git 2.18, released 2018-06-21. This means that some fairly recent platforms, like Ubuntu 18.04 "bionic", don't have those features in their default git.

Change git.Repository to invoke git config without using those newer options.

Fixes #97.