Skip to content
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

pre-receive hook for storing repo #26

Open
pkpp1233 opened this issue Jun 14, 2014 · 1 comment
Open

pre-receive hook for storing repo #26

pkpp1233 opened this issue Jun 14, 2014 · 1 comment

Comments

@pkpp1233
Copy link

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?

@audy
Copy link

audy commented Oct 24, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants