Git tag: pre-receive hook issue

2015-07-17 Thread Garbageyard
We have a pre-receive hook that checks for JIRA ID whenever someone pushes code to Git server. I'm trying to avoid this check when someone is applying a tag. Here's the link for the script: http://pastebin.com/VnMQp5ar This is the link for output: http://pastebin.com/tBGmYaZF Problem is that if i

Change default branch name (server side) while cloning a repository

2015-03-27 Thread Garbageyard
We use Gitolite for access control and i have admin access on Git server. I wanted to make sure that whenever a new repository is created and is then cloned on any machine, the default branch should point to mainline. To do this, when I run the repository creation script, i change the content of fi