Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Thomas Smith <[email protected]>
  • Loading branch information
OnkarRuikar and bsmth authored Feb 7, 2024
1 parent 16903a2 commit 0e8421b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .husky/update-history
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The script updates main branche's HEAD commit number.
# The stored commit number is used by post-merge script.
# This script stores the 'main' branch's HEAD commit hash in .husky/_/history
# The stored commit hash is used by the post-merge script .husky/post-merge

BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [[ "$BRANCH" == "main" ]]; then
echo $(git rev-parse HEAD) > ./.husky/_/history
fi
fi

0 comments on commit 0e8421b

Please sign in to comment.