SetupForDevelopment.sh 615 Bytes
Newer Older
1 2 3 4 5 6
#!/usr/bin/env bash

cd "${BASH_SOURCE%/*}" &&
GitSetup/setup-user && echo &&
GitSetup/setup-hooks && echo &&
GitSetup/setup-aliases && echo &&
7
GitSetup/setup-upstream && echo &&
8 9 10 11 12
GitSetup/tips

# Rebase master by default
git config rebase.stat true
git config branch.master.rebase true
13

14 15 16 17
# Disable Gerrit hook explicitly so the commit-msg hook will
# not complain even if some gerrit remotes are still configured.
git config hooks.GerritId false

18
# Record the version of this setup so Scripts/pre-commit can check it.
19
SetupForDevelopment_VERSION=2
20
git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}