aboutsummaryrefslogtreecommitdiff
path: root/scripts/git/git-push-all.sh
AgeCommit message (Collapse)Author
2019-09-10scripts: Make the git scripts show usage messagesteor
All of the git scripts now have usage messages on: * a new -h option, and * usage errors. Closes 31677.
2019-09-10scripts: Improve a usage message in git-push-all.shteor
Part of 31677.
2019-09-10scripts: Allow git-push-all.sh to be run from any directoryteor
Closes 31678.
2019-08-29scripts/git: fix shellcheck issues in git-push-all.shteor
Part of 31314.
2019-08-29scripts/git: Quote shell arguments where possibleteor
Most shell arguments should be quoted to avoid mistakes. But since all branch names are hard-coded, or supplied by the script user, we don't need to be too concerned about command injection. Quoting all shell arguments would take a major refactor. (Probably using arrays.) Part of 31314.
2019-08-29scripts/git: Improve usage documentation for merge-forward and push-allteor
Part of 31314.
2019-08-29scripts/git: Let git-push-all.sh skip unchanged test branchesteor
Skip test branches that are the same as remote maint/release/master branches. Add a TOR_PUSH_SAME and -s argument to git-push-all.sh to change this default. Part of 31314.
2019-08-29scripts/git: Make the git push command and args configurableteor
TOR_GIT_PUSH provides the git push command and default arguments. Also fix handling of git-push-all.sh script arguments and arguments that are passed through to $TOR_GIT_PUSH, using a "--" argument as a separator. Fix on 29879.
2019-08-29scripts/git: Add test branch support to the git scriptsteor
Add a -t <test-branch-prefix> argument to git-merge-forward.sh and git-push-all.sh, which makes these scripts create, merge forward, and push test branches. Add a -r <remote-name> argument to git-push-all.sh, so the script can push test branches to a personal remote. Closes ticket 31314.
2019-08-29scripts/git: Cleanup and fix minor git scripts issuesteor
Fix typos, clean up formatting, rewrite some comments, add headings. Preparation for 31314.
2019-08-26Fix/suppress shellcheck warnings in git-push-all.shNick Mathewson
(I've chosen to suppress some instances rather than 'fix' them, since the fix would require arrays or major refactoring.) Fixes bug 31519; bug not in any released Tor.
2019-08-08scripts/git: add TOR_PUSH_DELAY to git-push-all.shteor
Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the script push master and maint branches with a delay between each branch. These delays trigger the CI jobs in a set order, which should show the most likely failures first. Also: * make pushes atomic by default, and * make the script pass any command-line arguments to git push. Closes ticket 29879.
2019-06-11scripts/git: Stop hard-coding the bash path in the git scriptsteor
Some OSes don't have bash in /usr/bin, others have an ancient bash at this path. Fixes bug 30840; bugfix on 0.4.0.1-alpha.
2019-06-10push-all: Use TOR_UPSTREAM_REMOTE_NAME to override UPSTREAM_BRANCHNick Mathewson
We already allow this override in our pre-push hook, so let's allow it here too. (I call my upstream branches "origin")
2019-06-10Update git scripts for new versionsNick Mathewson
{maint,release}-0.4.1 are now real {maint,release}-0.3.4 are now EOL Closes ticket 30822
2019-03-10Move all git maintenance scripts to separate directoryrl1987