Skip to content

Commit 80a6a3a

Browse files
committed
Fix option usage
1 parent f5ec7d9 commit 80a6a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/git/hooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ has_commits() {
4848
if git branch -r | grep "${GIT_CURRENT_BRANCH}" > /dev/null; then
4949
echo 'Remote branch exists.' >&2
5050
echo 'Checking for commits to push...' >&2
51-
commits=$(git log origin/"${GIT_CURRENT_BRANCH}".."${GIT_CURRENT_BRANCH}" -- --oneline)
51+
commits=$(git log origin/"${GIT_CURRENT_BRANCH}".."${GIT_CURRENT_BRANCH}" --oneline --)
5252
else
5353
echo 'Remote branch does not exist.' >&2
5454
echo 'Checking for commits to push...' >&2
55-
commits=$(git log "${GIT_CURRENT_BRANCH}" -- --oneline)
55+
commits=$(git log "${GIT_CURRENT_BRANCH}" --oneline --)
5656
fi
5757
if [[ -z "${commits}" ]]; then
5858
echo 'No commits to push.'

0 commit comments

Comments
 (0)