[__git] Fix quoting in gencode-remote.
Echoing is hard turns out.
This commit is contained in:
parent
db68b04420
commit
6e3ef60f89
1 changed files with 3 additions and 3 deletions
|
@ -70,18 +70,18 @@ chown '${owner}:${group}' '$destination'
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
# Actually clone the repository
|
# 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"
|
echo create >> "$__messages_out"
|
||||||
repo_changed="YES"
|
repo_changed="YES"
|
||||||
elif [ "$branch_should" != "$branch_is" ]; then
|
elif [ "$branch_should" != "$branch_is" ]; then
|
||||||
# User has changed tag / branch, let's update that
|
# 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"
|
echo "change $branch_is -> $branch_should" >> "$__messages_out"
|
||||||
repo_changed="YES"
|
repo_changed="YES"
|
||||||
elif [ "$needs_update" = "YES" ]; then
|
elif [ "$needs_update" = "YES" ]; then
|
||||||
# The remote has newer information than our repository.
|
# The remote has newer information than our repository.
|
||||||
# Fetch was done in the explorer, here we can just pull
|
# 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"
|
echo update >> "$__messages_out"
|
||||||
repo_changed="YES"
|
repo_changed="YES"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue