question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

false warning around 'gitStatus' on newish macos X

See original GitHub issue

Description

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:closed
  • Created 10 months ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
dweisscommented, Nov 21, 2022

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.

1reaction
rmuircommented, Nov 21, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found