Created
January 14, 2014 07:20
-
-
Save doublerebel/8414437 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /home/git/repositories/$1 | |
git config --bool core.bare false | |
git config --path core.worktree $2 | |
git config receive.denycurrentbranch ignore | |
echo '#!/bin/sh\ngit checkout -f\n' >> hooks/post-receive | |
chmod +x hooks/post-receive | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deploys bare gitlab repo into local folder for staging/review.
For use with gitlabhq/gitlabhq.
Usage
Links
runasgit gist