https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: d66e92a1ac29d107b7f9de7b4f2efd712a91508f authored by Gerrit Code Review on 20 September 2011, 16:01:14 UTC
Auto-merge of 120ff0a8ec28981ea82fa824253f58cfd1a9f466
Tip revision: d66e92a
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://$name@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