https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 71aeaf2f602fa37041544e35b892fc95d889c184 authored by Gerrit Code Review on 17 September 2011, 20:16:14 UTC
Auto-merge of ac851ef13787a61a1dcb3f5b0c4c8ad414bc2030
Tip revision: 71aeaf2
git-setup
#!/bin/bash

# Basic setup for the puppet git repository

# Need this info
echo "Type your LDAP (SVN/Gerrit/Labs) username:"
read name
echo "Type the e-mail address for this username:"
read email

# Global config
git config --global user.email "$email"
git config --global user.name "$name"

# Setup remotes/aliases
git remote add puppet ssh://$user@gerrit.wikimedia.org:29418/operations/puppet
git config alias.push-for-review-test "push puppet HEAD:refs/for/test"
git config alias.push-for-review-production "push puppet HEAD:refs/for/production"
back to top