We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f55e92 commit ea2e5cbCopy full SHA for ea2e5cb
.husky/pre-push
@@ -1,4 +1,4 @@
1
-remote_branch="$(git rev-parse --abbrev-ref --symbolic-full-name '@{u}')"
+remote_branch="$(git rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>/dev/null || echo "no_upstream")"
2
3
if [[ "$remote_branch" == "origin/master" ]]; then
4
bun commitlint --from="$remote_branch" --to=HEAD
0 commit comments