[__git] Smart shellcheck! Fix bug

This commit is contained in:
evilham 2020-06-18 00:52:46 +02:00
parent 376fab8a66
commit e13b44bd5d

View file

@ -70,7 +70,7 @@ chown '${owner}:${group}' '$destination'
EOF
fi
# Actually clone the repository
su -m "$git_user" -c "git clone --quiet '$recursive' '$shallow' --branch '$branch' '$source' '$destination'"
su -m "$git_user" -c "git clone --quiet '$recursive' '$shallow' --branch '$branch_should' '$source' '$destination'"
echo create >> "$__messages_out"
repo_changed="YES"
elif [ "$branch_should" != "$branch_is" ]; then