laravel-fast-refresh-database
laravel-fast-refresh-database copied to clipboard
Creating a checksum not based on github commands
Now checksum is creating based on git
command what if specific project is used only localy without any repository?
It is marginal situation but possible.
Hey @kamilpiech97 thanks for this, sorry for the delay in responding!
I agree there's times where git
isn't available - I would be happy to write a quick try-catch and if the git branch couldn't be found, we just continue without it. Or we use Process
again to check if a Git repository exists in the path?
The same problem exists in CI pipelines, where testing takes place in a Docker image without Git. I would find it nicer if instead of Git $migrations['gitBranch']
you simply use $migrations['salt']
and then also enter the salt
via an environment variable