Skip to content

tests: Use command -v instead of third-party which program - #1525

Merged
Byron merged 1 commit into
gitpython-developers:mainfrom
mgorny:command-v
Dec 31, 2022
Merged

tests: Use command -v instead of third-party which program#1525
Byron merged 1 commit into
gitpython-developers:mainfrom
mgorny:command-v

Conversation

@mgorny

Copy link
Copy Markdown
Contributor

Use command -v to locate the git executable instead of which. The former is guaranteed to always be available according to POSIX, while which(1) is a redundant third-party tool that is slowly being phased out from Linux distributions. In particular, Gentoo no longer installs it by default.

Use `command -v` to locate the git executable instead of `which`.
The former is guaranteed to always be available according to POSIX,
while which(1) is a redundant third-party tool that is slowly being
phased out from Linux distributions. In particular, Gentoo no longer
installs it by default.
@ByronByron added this to the v3.1.31 - Bugfixes milestone Dec 31, 2022
@Byron

Copy link
Copy Markdown
Member

Thanks a lot! Much appreciated.

@Byron
Byron merged commit fbc36f9 into gitpython-developers:mainDec 31, 2022
@mgorny

Copy link
Copy Markdown
ContributorAuthor

Thanks!

@mgorny
mgorny deleted the command-v branch December 31, 2022 08:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mgorny@Byron