aboutsummaryrefslogtreecommitdiff
path: root/scripts/git/pre-commit.git-hook
AgeCommit message (Collapse)Author
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-07-02scripts: Don't run practracker in git hooksDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-02scripts: Add env variable to disable pre-commit hookDavid Goulet
We introduce TOR_EXTRA_PRE_COMMIT_CHECKS environment variable to run the pre-commit hook. The pre-push git hook will set it in order to run all pre-commit checks. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-23Git hooks: remove support for 0.2.9 directory layout.Nick Mathewson
We no longer will be pushing or committing things in branches that use src/common or src/or. Resolves ticket 32957.
2019-12-20Makefile/git scripts: Add comments to keep owned file lists in syncteor
2019-12-04git scripts: Add the checkSpace.pl unit teststeor
Extra testing after 32613.
2019-12-04Makefile/git scripts: Add the practracker unit teststeor
Add a check-practracker-unit-test target, and run it as part of "make check". Add the practracker unit tests to scripts/git/pre-commit.git-hook. Part of 32609.
2019-10-28scripts/git: Fix a shellcheck error in pre-commit.git-hookteor
Some versions of shellcheck do not detect this error. Bugfix on 31919; not in any released version of tor.
2019-10-24scripts/git: Only check modified files in existing git hook checksteor
Part of 31919.
2019-10-24scripts/git: Add check_cocci_parse.sh to the pre-commit hookteor
But only check modified files, which dramatically speeds up check_cocci_parse.sh. Part of 31919.
2019-09-05shellcheck: Add shellcheck to the pre-commit hookteor
* Move the shellcheck script from the Makefile to its own script file * Reformat the shellcheck script so it's easier to read and modify * Call the shellcheck script from the pre-commit hook Fixes bug 30967; not in any released version of Tor.
2019-08-26Merge remote-tracking branch 'tor-github/pr/1241'Nick Mathewson
2019-08-20scripts/git: Remove a duplicate practracker call from the pre-push hookteor
The pre-push hook already calls the pre-commit hook, which calls practracker. Also update the script comments to avoid similar issues in future. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
2019-08-05Update pre-commit hook to find checkIncludes in its new locationNick Mathewson
Also add a temporary script to redirect the hook, if people don't upgrade for a bit.
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-04-24Merge branch 'tor-github/pr/930'David Goulet
2019-04-23Call practracker from pre-push and pre-commit hooksrl1987
2019-04-10Fix pre-commit hook to correctly allow empty changes files.Nick Mathewson
Fixes bug 30120; bugfix not in any released Tor.
2019-03-10Move all git maintenance scripts to separate directoryrl1987