gitreceive icon indicating copy to clipboard operation
gitreceive copied to clipboard

pre-receive hook for storing repo

Open pkpp1233 opened this issue 10 years ago • 1 comments

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 [email protected]: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?

pkpp1233 avatar Jun 14 '14 21:06 pkpp1233

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.

audy avatar Oct 24 '14 01:10 audy