]> git.lizzy.rs Git - rust.git/commitdiff
set the executable bit on pre-commit.sh
authorJack O'Connor <oconnor663@gmail.com>
Wed, 11 Aug 2021 18:57:35 +0000 (14:57 -0400)
committerJack O'Connor <oconnor663@gmail.com>
Wed, 11 Aug 2021 19:06:33 +0000 (15:06 -0400)
`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.

src/etc/pre-commit.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)