Commit graph

6 commits

Author SHA1 Message Date
Jack O'Connor
a0103e50d5 set the executable bit on pre-commit.sh
`x.py setup` hardlinks this file into .git/hooks. Prior to this commit,
that led to the following warning emitted by `git commit`:

    hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.

Making the checked-in script executable fixes this issue, as the
hardlinked copy uses the same flags.

It looks like the file was originally executable, but that bit was
unset in commit b908905b3d of
https://github.com/rust-lang/rust/pull/85305. It's possible that was
unintentional.
2021-08-11 15:06:33 -04:00
marcusdunn
b908905b3d changeded bindings_after_at from active to accepted 2021-06-04 09:41:55 -07:00
katelyn martin
f06896ca7a
fix typo in pre-commit.sh 2021-02-24 18:37:13 -05:00
Joshua Nelson
f4989494bf Unset GIT_DIR in pre-commit hook
Works around https://github.com/rust-lang/rust/issues/77620
2020-10-07 19:50:27 -04:00
Cassandra Fridkin
68ca4742c5
Clean up pre-commit.sh 2020-10-05 19:35:06 -04:00
Cassandra Fridkin
7de557bf9c
Move script to src/etc 2020-10-05 18:57:48 -04:00
Renamed from src/tools/install-git-hook/src/pre-commit.sh (Browse further)