From 829f6473efd0ddbddf6c40341de8993060a14802 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 14 Jun 2023 17:06:22 +0100 Subject: [PATCH 1/3] Pass through git args in hook template --- libraries/rush-lib/src/logic/base/BaseInstallManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/rush-lib/src/logic/base/BaseInstallManager.ts b/libraries/rush-lib/src/logic/base/BaseInstallManager.ts index bb2dc89a595..ae2ee615e67 100644 --- a/libraries/rush-lib/src/logic/base/BaseInstallManager.ts +++ b/libraries/rush-lib/src/logic/base/BaseInstallManager.ts @@ -487,7 +487,7 @@ SCRIPT_DIR="$( cd "$( dirname "\${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_IMPLEMENTATION_PATH="$SCRIPT_DIR/${hookRelativePath}/${filename}" if [[ -f "$SCRIPT_IMPLEMENTATION_PATH" ]]; then - "$SCRIPT_IMPLEMENTATION_PATH" + "$SCRIPT_IMPLEMENTATION_PATH" $@ else echo "The ${filename} Git hook no longer exists in your version of the repo. Run 'rush install' or 'rush update' to refresh your installed Git hooks." >&2 fi From 982ce2f60e343169a70d557bdf7a6a46e5b8175e Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 14 Jun 2023 17:11:00 +0100 Subject: [PATCH 2/3] Add changelog --- .../rush/git-hook-passthrough_2023-06-14-16-10.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json diff --git a/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json b/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json new file mode 100644 index 00000000000..5279c3f79ac --- /dev/null +++ b/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "Fix git hook passthrough", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file From f0987bad9e8a55a902cfcb13ecf8fefaa7e85702 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Wed, 14 Jun 2023 10:48:08 -0700 Subject: [PATCH 3/3] Update common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json --- .../@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json b/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json index 5279c3f79ac..cb72a80f19c 100644 --- a/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json +++ b/common/changes/@microsoft/rush/git-hook-passthrough_2023-06-14-16-10.json @@ -2,7 +2,7 @@ "changes": [ { "packageName": "@microsoft/rush", - "comment": "Fix git hook passthrough", + "comment": "Fix an issue where arguments weren't passed to git hook scripts.", "type": "none" } ],