We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9e84fe commit 1e14c8eCopy full SHA for 1e14c8e
1 file changed
tools/git/hooks/pre-push
@@ -43,7 +43,7 @@ cleanup() {
43
# Checks if commits exist to push, as `git push` will execute regardless of whether commits exist to push or not.
44
has_commits() {
45
echo 'Checking for commits to push...' >&2
46
- local commits="$(git log origin/${GIT_CURRENT_BRANCH}..${GIT_CURRENT_BRANCH} --oneline)"
+ local commits="$(git log origin/${GIT_CURRENT_BRANCH}..${GIT_CURRENT_BRANCH} -- --oneline)"
47
if [[ -z "${commits}" ]]; then
48
echo 'No commits to push.'
49
return 1
0 commit comments