false warning around 'gitStatus' on newish macos X
See original GitHub issueDescription
When I run builds on mac, I see:
> Task :gitStatus
Cannot run program "/usr/bin/git" (in directory "/usr/bin"): error=2, No such file or directory
But the error is actually harmless. checkWorkingCopy
etc work as you expect. It just confuses me…
The jgit does pretty crazy stuff on macos hosts, and I think the issues are there? On my mac /usr/bin/git
is indeed git and not some xcode wrapper.
See logic in https://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java#n145
Issue Analytics
- State:
- Created 10 months ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
How to fix "warning: could not open directory" after "git add ...
I have a macbook which runs on OS X Maverick. I went into my system preferences > security and privacy and selected Full...
Read more >Fix Terminal “Operation not permitted” Error in macOS ...
This walkthrough will show you how to fix “Operation not permitted” error messages seen at the command line in Terminal for Mac OS...
Read more >Safely open apps on your Mac - Apple Support (CA)
Safely open apps on your Mac · View the app security settings on your Mac · Open a developer-signed or notarized app ·...
Read more >Git Reset | Atlassian Git Tutorial
Git reset is a powerful command that is used to undo local changes to the state of a Git repo. Explore its 3...
Read more >git-config Documentation - Git
When writing, the new value is written to the repository local configuration file by default, ... This option is only used by Mac...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the delay - thanks for testing, Robert. The reason jgit does this is, I believe, to extract user-specific git options so that jgit and git behave the same (for example per-user settings for eols, etc.). At least that was my impression from looking at method names in FS class that does it.
I don’t think this matters to us at all.
well for us there is no concern of anything, we don’t need to suck in any fancy git configuration for the minimal way we use this jgit (simply checking the status)