Skip to content

Commit 1e14c8e

Browse files
committed
Fix ambiguity error
1 parent c9e84fe commit 1e14c8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/git/hooks/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cleanup() {
4343
# Checks if commits exist to push, as `git push` will execute regardless of whether commits exist to push or not.
4444
has_commits() {
4545
echo 'Checking for commits to push...' >&2
46-
local commits="$(git log origin/${GIT_CURRENT_BRANCH}..${GIT_CURRENT_BRANCH} --oneline)"
46+
local commits="$(git log origin/${GIT_CURRENT_BRANCH}..${GIT_CURRENT_BRANCH} -- --oneline)"
4747
if [[ -z "${commits}" ]]; then
4848
echo 'No commits to push.'
4949
return 1

0 commit comments

Comments
 (0)