diff --git a/scripts/git-hooks/pre-push b/scripts/git-hooks/pre-push index 281e035..16481c4 100755 --- a/scripts/git-hooks/pre-push +++ b/scripts/git-hooks/pre-push @@ -31,9 +31,9 @@ while read -r local_ref local_sha remote_ref remote_sha; do continue fi - local range="" + range="" if [[ "$remote_sha" == "$zero_sha" ]]; then - local base="" + base="" if git show-ref --verify --quiet refs/remotes/origin/main; then base="$(git merge-base origin/main "$local_sha" 2>/dev/null || true)" fi @@ -54,9 +54,8 @@ done # Fallback when stdin is empty (non-standard invocations). if [[ "$read_any_ref" == false ]]; then - local head_sha head_sha="$(git rev-parse HEAD)" - local base="" + base="" if git show-ref --verify --quiet refs/remotes/origin/main; then base="$(git merge-base origin/main "$head_sha" 2>/dev/null || true)" fi