progrium / gitreceive

Easily accept and handle arbitrary git pushes
1.14k stars 108 forks source link

pre-receive hook for storing repo #26

Open pkpp1233 opened 10 years ago

pkpp1233 commented 10 years ago

not sure if this is outside of the scope of gitreceive - but is there any way to save repositories when they're pushed to me to specific folders? so even if the remote is set up as:

git remote add demo git@yourserver.com:example

... I can still save the repo in a folder besides /git/example ? maybe this would be some sort of processing done in a hook?

audy commented 10 years ago

Git receive will save the repositories in the home directory of the $GITUSER specified during installation. You could symlink a different directory to /home/$GITUSER so long as the receiver script is in that directory.