Skip to content
Snippets Groups Projects
Commit 5c54d3cf authored by Nico's avatar Nico
Browse files

fix branch existence checking

parent 27c286a0
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ git fetch upstream --tags
git branch -a
# we already have this branch - exit
if ! git rev-parse --verify "$fork_newest_minor_branch" &> /dev/null; then
if [ "$(git ls-remote --heads "$gluon_fork_git_url" "$fork_newest_minor_branch" | wc -l)" -gt 0 ]; then
echo "Nothing todo, branch $fork_newest_minor_branch already exists"
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment