Skip to content
Snippets Groups Projects
Commit 28abc2c3 authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge branch 'master' into 'master'

#2 improved check for updated repository to handle different branch name lengths

See merge request ansible-roles/drupal!5
parents 98eba33d 7d5bfaea
No related branches found
No related tags found
1 merge request!5#2 improved check for updated repository to handle different branch name lengths
......@@ -16,7 +16,7 @@ branch="$(git rev-parse --abbrev-ref HEAD)"
if [ $force -eq 0 ]; then
echo '> check for changes'
OUTPUT=$(git remote show origin)
if [[ $OUTPUT == *"pushes to $branch (up to date)"* ]]; then
if [[ $OUTPUT == *"$branch "*"pushes to $branch "*"(up to date)"* ]]; then
echo "> unchanged, cancel"
exit
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment