tig: prefer git that's in PATH over the bundled one (#489353)

This commit is contained in:
Bjørn Forsman
2026-02-12 19:43:06 +00:00
committed by GitHub
+2 -1
View File
@@ -73,8 +73,9 @@ stdenv.mkDerivation (finalAttrs: {
# ZSH can be used (Completion/Unix/Command/_git: "_tig () { _git-log }"):
#install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig
# Prefer the git in PATH, but add a fallback one in case there isn't one.
wrapProgram $out/bin/tig \
--prefix PATH ':' "${git}/bin"
--suffix PATH ':' "${git}/bin"
'';
outputs = [