Commit 17a1200c authored by Brad King's avatar Brad King

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
[hooks] [hooks]
url = http://public.kitware.com/GitSetup.git url = https://gitlab.kitware.com/utils/gitsetup.git
[gerrit] [upstream]
project = KWSys url = https://gitlab.kitware.com/utils/kwsys.git
site = http://review.source.kitware.com
pushurl = $username@review.source.kitware.com:KWSys
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Adding 'git prepush' alias" && echo "Adding 'git prepush' alias" &&
git config alias.prepush 'log --graph --stat origin/master..' && git config alias.prepush 'log --graph --stat origin/master..' &&
echo "Adding 'git gerrit-push' alias" && gerrit_disabled="KWSys no longer uses Gerrit. Please use GitLab." &&
git config alias.gerrit-push "!bash GitSetup/git-gerrit-push" && git config alias.gerrit-push '!sh -c "echo '"${gerrit_disabled}"'"' &&
true true
...@@ -3,14 +3,18 @@ ...@@ -3,14 +3,18 @@
cd "${BASH_SOURCE%/*}" && cd "${BASH_SOURCE%/*}" &&
GitSetup/setup-user && echo && GitSetup/setup-user && echo &&
GitSetup/setup-hooks && echo && GitSetup/setup-hooks && echo &&
GitSetup/setup-gerrit && echo &&
GitSetup/setup-aliases && echo && GitSetup/setup-aliases && echo &&
GitSetup/setup-upstream && echo &&
GitSetup/tips GitSetup/tips
# Rebase master by default # Rebase master by default
git config rebase.stat true git config rebase.stat true
git config branch.master.rebase 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. # 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} git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment