Skip to content

Commit

Permalink
Merge pull request microsoft#4201 from egmacke/git-hook-passthrough
Browse files Browse the repository at this point in the history
[rush-lib] Git hook arg passthrough
  • Loading branch information
iclanton authored Jun 14, 2023
2 parents 8877b02 + f0987ba commit 43e3802
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Fix an issue where arguments weren't passed to git hook scripts.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
2 changes: 1 addition & 1 deletion libraries/rush-lib/src/logic/base/BaseInstallManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43e3802

Please sign in to comment.