diff --git a/cdist/conf/type/__git/gencode-remote b/cdist/conf/type/__git/gencode-remote index 972752bb..370b966e 100755 --- a/cdist/conf/type/__git/gencode-remote +++ b/cdist/conf/type/__git/gencode-remote @@ -70,18 +70,18 @@ chown '${owner}:${group}' '$destination' EOF fi # Actually clone the repository - su -m "$git_user" -c "git clone --quiet '$recursive' '$shallow' --branch '$branch_should' '$source' '$destination'" + echo "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 # User has changed tag / branch, let's update that - echo su -m "$git_user" -c "git checkout '$branch_should'" + echo "su -m '$git_user' -c \"git checkout '$branch_should'\"" echo "change $branch_is -> $branch_should" >> "$__messages_out" repo_changed="YES" elif [ "$needs_update" = "YES" ]; then # The remote has newer information than our repository. # Fetch was done in the explorer, here we can just pull - echo su -m "$git_user" -c "git -C '$destination' pull" + echo "su -m '$git_user' -c \"git -C '$destination' pull\"" echo update >> "$__messages_out" repo_changed="YES" fi