Commit e3153aba authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

check if its only local branch (#175)

parent 4caa5965
......@@ -2,10 +2,14 @@
set -euo pipefail
# Check if we actually have commits to push
commits=$(git log @{u}..)
if [ -z "$commits" ]; then
exit 0
# Get current branch name
current=$(git rev-parse --abbrev-ref HEAD)
if git branch -r | grep "^ ${1}/${current}$" &> /dev/null; then
# Check if we actually have commits to push
commits=$(git log @{u}..)
if [ -z "$commits" ]; then
exit 0
fi
fi
make build lint vet test-race
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment