I'm testing with the 3.0.0 beta2 plugin and encountering an error. In particular this is the error reported:
hudson.plugins.git.GitException: Command "git submodule update --init --recursive php-libraries" returned status code 1:
stdout:
stderr: error: pathspec 'php-libraries' did not match any file(s) known to git.
Now, if I run the same command as stated here from my local git I get the same error, but I can run git submodule init and git submodule update without any issues.
My git submodule status shows the submodule in question (though with its path, not its submodule name:
git submodule status
4f27645ae23a3955d72043afffb75a34449bbbaf var/www/members/libraries (heads/release/v1.0)
My .gitmodules includes the following, which is correct:
[submodule "php-libraries"]
path = var/www/members/libraries
url = http://blades:7990/scm/phpapi/php-libraries.git
branch = release/v1.0
And my .git/config file contains this reference, which seems correct:
[submodule "php-libraries"]
url = http://blades:7990/scm/phpapi/php-libraries.git
Running this from my local git client; however works:
git submodule update --init --recursive var/www/members/libraries
So, while not an expert, it seems that the git submodule command is expecting the path, but instead what is being passed to it is the name of the submodule. I'm not sure if the name should work as well, but at least in my case it is not.
If I arrived at an incorrect conclusion please fill me in on where I went wrong.
markewaite thank you so much! i'm happy!