I have an app running with Docker and the .git directory is ignored to reduced the project's size.
The problem is that every time an artisan command is ran this message is displayed and stored inside the logs of Kubernetes. Moreover, in some cases is the reason why some kubernetes tasks cannot reach the HEALTHY status.
I have a Cronjob with kubernetes which reaches just 2/3 and the only message that the logs displayed is this one.
To do so, you need to navigate to the correct folder and then run the command git init , which will create a new empty Git repository or reinitialize an existing one.
The “not a git repository” error is common. The cause is running a Git command in the wrong folder or running a Git command before initializing a Git repository.
git: 'remote-https' is not a git command. See 'git --help'.
Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component.
monicahq/monica PR 950 is an example of a workaround where the Sentry configuration is modified to test for the presence of the Git repository, ensuring php artisan config:cache
is run only once.
// capture release as git sha
'release' => is_dir(__DIR__.'/../.git') ? trim(exec('git log --pretty="%h" -n1 HEAD')) : null,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With