Skip to content
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

Add colorized output and improved error handling for script execution and fixed GIT_DISCOVERY_ACROSS_FILESYSTEM #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

antomfdez
Copy link

@antomfdez antomfdez commented Nov 27, 2024

Added colorized output for success (green) and error (red) messages in the script.
Implemented dynamic marking of Git directories as safe to avoid "dubious ownership" errors.
Refined error handling to log both successful and failed commands with timestamps.
Ensured that all critical directories (/usr/ports, /usr/src) are automatically marked as safe for Git operations.

@MikeJakubik
Copy link
Owner

Will fix these errors and commit the rest, ty.

Running: git pull
fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[ ERROR ]: Command failed with error
[ ERROR ]: Error output: fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[ Updating /usr/src git tree... ]
Running: cd /usr/src

[ SUCCESS ]: cd /usr/src was successful
Running: git pull
fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[ ERROR ]: Command failed with error
[ ERROR ]: Error output: fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

@antomfdez
Copy link
Author

GIT_DISCOVERY_ACROSS_FILESYSTEM, I will look at this and update the pull request

@antomfdez antomfdez changed the title Add colorized output and improved error handling for script execution Add colorized output and improved error handling for script execution and fixed GIT_DISCOVERY_ACROSS_FILESYSTEM Nov 29, 2024
@antomfdez
Copy link
Author

i think its fixed at least for my freebsd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants