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 @@ ...@@ -2,10 +2,14 @@
set -euo pipefail set -euo pipefail
# Check if we actually have commits to push # Get current branch name
commits=$(git log @{u}..) current=$(git rev-parse --abbrev-ref HEAD)
if [ -z "$commits" ]; then if git branch -r | grep "^ ${1}/${current}$" &> /dev/null; then
exit 0 # Check if we actually have commits to push
commits=$(git log @{u}..)
if [ -z "$commits" ]; then
exit 0
fi
fi fi
make build lint vet test-race 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