From a0103e50d51832958b5aca55a03ebf74ba46d64f Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Wed, 11 Aug 2021 14:57:35 -0400 Subject: [PATCH] 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. --- src/etc/pre-commit.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/etc/pre-commit.sh diff --git a/src/etc/pre-commit.sh b/src/etc/pre-commit.sh old mode 100644 new mode 100755