diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-10-29 16:40:07 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-10-29 16:40:07 +0100 |
| commit | 7c284d4c90e1bf290b219c3cb403c114d463adc7 (patch) | |
| tree | 28a6f09928c0c6e3bd5a977c01d05337e1708679 /lisp/magit-git.el | |
| parent | 07b561648da12061be70d1800b7b1cf00cc5c16b (diff) | |
magit--assert-usable-git: Remove obsolete kludge
We require at least Git 2.25, so we can always
use "git config"'s "--default" argument.
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 89425c1..9b6dd88 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -959,11 +959,9 @@ returning the truename." (lambda (err) (signal 'magit-corrupt-git-config (format "%s: %s" default-directory err))))) - ;; This should always succeed unless there's a corrupt config - ;; (or at least a similarly severe failing state). Note that - ;; git-config's --default is avoided because it's not available - ;; until Git 2.18. - (magit-git-string "config" "--get-color" "" "reset")) + ;; This should always succeed unless there is a corrupt + ;; config (or possibly a similarly severe failing state). + (magit-git-string "config" "--default=_" "core.bare")) nil)) (defun magit--not-inside-repository-error () |
