Skip to content

Instantly share code, notes, and snippets.

@joujiahe
Created September 28, 2012 07:58
Show Gist options
  • Save joujiahe/3798535 to your computer and use it in GitHub Desktop.
Save joujiahe/3798535 to your computer and use it in GitHub Desktop.
Get gitolite project's name in post-receive hook.
#...
path=`pwd`
project_name=${path/"$HOME/repositories/"/""}
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment