Skip to content

[@microsoft/rush-lib] Git 'pre-push' hooks didn't handle error correctly - #4247

Merged
Ian Clanton-Thuon (iclanton) merged 4 commits into
microsoft:mainfrom
kamontat:patch-1
Jul 24, 2023
Merged

Ian Clanton-Thuon (iclanton) merged 4 commits into
microsoft:mainfrom
kamontat:patch-1

Conversation

@kamontat

@kamontat Kamontat Chantrachirathumrong (kamontat) commented Jul 20, 2023 •

Copy link
Copy Markdown
Contributor

Summary

Git pre-push hook will stop pushing if script return failure, however because git-lfs support causing pre-push to never exit with error.

Details

The set -e will immediately exit with error if any command exit with error

How it was tested

Impacted documentation

fixes #4248

@kamontat

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[rush] git pre-push hook didn't work as expected

3 participants