Comments (6)
The receive script has to be able to access the submodules. There's sadly no way around this for submodules.
from gitreceive.
Just in case anyone has the same issue, I did this in my receiver
, after unpacking
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
from gitreceive.
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. [email protected]:
Just in case anyone has the same issue, I did this in my receiver, after
unpackingecho "----> 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—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-28241922
.
Jeff Lindsay
http://progrium.com
from gitreceive.
Of course although it seems like there is no wiki for the project
from gitreceive.
https://github.com/progrium/gitreceive/wiki/TipsAndTricks
On Mon, Nov 11, 2013 at 2:08 PM, Tristan F. [email protected]:
Of course although it seems like there is no wiki for the project
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-28244496
.
Jeff Lindsay
http://progrium.com
from gitreceive.
Link added to the readme, and documentation added to the wiki.
from gitreceive.
Related Issues (19)
- a=rw causes SSH to reject all logins HOT 5
- Failure of the git push doesn't fail tests HOT 2
- Command when using GITUSER HOT 1
- Question re perl regex in gitreceive HOT 1
- Piping code to directory adds low-level git files/folders HOT 2
- pre-receive hook for storing repo HOT 1
- Request Bin HOT 4
- gitreceive on Mac Server HOT 5
- Git repos can be created outside the $GITHOME directory HOT 1
- pre-receive hook declined error HOT 10
- Can't push tags to the repository
- Error pushing changes to gitreceive: No script output reported HOT 3
- digital ocean automated remote golang app deployment : git push, go build, remove source code and start docker container with binary as entrypoint HOT 2
- No need for bare repo HOT 1
- Git Quarentines git receive hooks, i.e. can't git clone during pre-receive.
- upload-key permission denied HOT 4
- sudo: no tty present and no askpass program specified HOT 7
- this does not read environment vars from /etc/profile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitreceive.