]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #87942 - oconnor663:pre_commit_exec, r=jyn514
authorYuki Okushi <jtitor@2k36.org>
Thu, 12 Aug 2021 06:32:59 +0000 (15:32 +0900)
committerGitHub <noreply@github.com>
Thu, 12 Aug 2021 06:32:59 +0000 (15:32 +0900)
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 b908905b3defa075d08661dc5916219a870b4856 of
https://github.com/rust-lang/rust/pull/85305. It's possible that was
unintentional.


Trivial merge