Can't build without git
paulovitorbal opened this issue · 3 comments
Unfortunately, where I work we still use svn to version control. And I had to make a copy of the project and git init then git commit to being able to build.
What kind of error are you getting with SVN @paulovitorbal?
In any case, I recommend you to give a try to humbug/box
rather, at least I can fix the issue there :)
box.json
{ "chmod": "0755", "directories": [ "src", "tempaltes" ], "finder": [ { "name": "*.php", "in": "vendor" } ], "git-version": "1.0.0", "main": "bin/main.php", "output": "ouvidoria.phar", "stub": true }
Console output:
$ box build
Building...
[RuntimeException]
The tag or commit hash could not be retrieved from "/home/paulovitorbal/projetos/ouvidoria": The tag or commit hash could not be retrieved from "/home/paulovitorbal/
projetos/ouvidoria": fatal: Not a git repository (or any of the parent directories): .git
[RuntimeException]
The tag or commit hash could not be retrieved from "/home/paulovitorbal/projetos/ouvidoria": fatal: Not a git repository (or any of the parent directories): .git
build [-c|--configuration CONFIGURATION]
Back on this: the error occurs because you are specifying git-version
in the config which needs to use Git... Get rid of that part and you should be good, for both Box 2 & 3