Skip to content
Snippets Groups Projects
Commit 17a1200c authored by Brad King's avatar Brad King
Browse files

Convert developer setup scripts away from Gerrit Code Review

KWSys development is moving away from the Gerrit Code Review system.
Disable portions of `SetupForDevelopment.sh` related to Gerrit.
parent 41a7fe5b
No related branches found
No related tags found
No related merge requests found
[hooks]
url = http://public.kitware.com/GitSetup.git
[gerrit]
project = KWSys
site = http://review.source.kitware.com
pushurl = $username@review.source.kitware.com:KWSys
url = https://gitlab.kitware.com/utils/gitsetup.git
[upstream]
url = https://gitlab.kitware.com/utils/kwsys.git
#!/usr/bin/env bash
echo "Adding 'git prepush' alias" &&
git config alias.prepush 'log --graph --stat origin/master..' &&
echo "Adding 'git gerrit-push' alias" &&
git config alias.gerrit-push "!bash GitSetup/git-gerrit-push" &&
gerrit_disabled="KWSys no longer uses Gerrit. Please use GitLab." &&
git config alias.gerrit-push '!sh -c "echo '"${gerrit_disabled}"'"' &&
true
......@@ -3,14 +3,18 @@
cd "${BASH_SOURCE%/*}" &&
GitSetup/setup-user && echo &&
GitSetup/setup-hooks && echo &&
GitSetup/setup-gerrit && echo &&
GitSetup/setup-aliases && echo &&
GitSetup/setup-upstream && echo &&
GitSetup/tips
# Rebase master by default
git config rebase.stat true
git config branch.master.rebase true
# 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
# Record the version of this setup so Scripts/pre-commit can check it.
SetupForDevelopment_VERSION=1
SetupForDevelopment_VERSION=2
git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment