diff --git a/cdist/conf/type/__git/gencode-remote b/cdist/conf/type/__git/gencode-remote index 7e0118fc..972752bb 100755 --- a/cdist/conf/type/__git/gencode-remote +++ b/cdist/conf/type/__git/gencode-remote @@ -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