From e13b44bd5de31173be62fd19ca0bcb1c04e2ac4d Mon Sep 17 00:00:00 2001 From: Evilham Date: Thu, 18 Jun 2020 00:52:46 +0200 Subject: [PATCH] [__git] Smart shellcheck! Fix bug --- cdist/conf/type/__git/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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