-
Notifications
You must be signed in to change notification settings - Fork 108
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
Handle submodules? #19
Comments
The receive script has to be able to access the submodules. There's sadly no way around this for submodules. |
Just in case anyone has the same issue, I did this in my echo "----> Getting submodules"
rm -fr .git
unset GIT_DIR
git init .
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
rm -fr $path
url_key=`echo $path_key | sed 's/\.path/.url/'`
url=`git config -f .gitmodules --get "$url_key"`
#$3 is the username
git submodule add $3@$url $path
done |
Can you put this on the wiki and then link it in the readme? On Mon, Nov 11, 2013 at 1:38 PM, Tristan F. notifications@github.comwrote:
Jeff Lindsay |
Of course although it seems like there is no wiki for the project |
https://github.com/progrium/gitreceive/wiki/TipsAndTricks On Mon, Nov 11, 2013 at 2:08 PM, Tristan F. notifications@github.comwrote:
Jeff Lindsay |
Link added to the readme, and documentation added to the wiki. |
Hi!
How would you handle submodules then? I have submodules in my project, but on the server in the
receive
script I cannot checkout the submodules as this is a front-end server and should not have access to our git repositories.Any idea on how to manage this?
The text was updated successfully, but these errors were encountered: