-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error message when loading from a non-git directory #1927
Comments
There's nothing actually wrong -- it's just that the setup script tries to figure out the git commit id of what you're building from and in the non-repository case git itself reports "fatal: not a git repository (or any of the parent directories)". It does that to standard error, so we could add a |
Thanks
… On Dec 21, 2024, at 11:55 AM, Nick Briggs ***@***.***> wrote:
There's nothing actually wrong -- it's just that the setup script tries to figure out the git commit id of what you're building from and in the non-repository case git itself reports "fatal: not a git repository (or any of the parent directories)". It does that to standard error, so we could add a 2>/dev/null to the git commands in there, which would just make it silent. It's too bad there's no --silent or --quiet option.
—
Reply to this email directly, view it on GitHub <#1927 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJLK7W2RBAL6RFQCQ532GXBU3AVCNFSM6AAAAABT6FTRDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGIZDEMJSGA>.
You are receiving this because you authored the thread.
|
I'd suggest this patch to medley/scripts/loadup-setup.sh
there is no other use of HAS_GIT in any of the scripts, the existing code doesn't appear to work cleanly if git is not installed, and if git exists but the script is run in a non-repo, it prints git's "fatal: ..." error message. |
For reference - this is the script fragment I use for the Maiko git revision to determine if git is installed and the command is being executed within a git repository:
|
I routinely run the loadup script in my working directory, which is not a git clone.
I noticed that at almost every step it prints out
fatal: not a git repository (or any of the parent directories): .git
It's true that it isn't a repository, but did something really go wrong? Or it's just an error message that should be suppressed or phrased in a different way.
Is there something wrong with building in a non-repository?
This is on Mac 14.6.1 Sonoma
The text was updated successfully, but these errors were encountered: