(adc) change quoting when calling cli_repo_rights from shell

otherwise repo names containing "@" in them were causing the @foo part
to be interpolated (as empty of course) instead of being taken literally

reported by silvio dot fricke at googlemail
This commit is contained in:
Sitaram Chamarty 2011-06-26 11:33:56 +05:30
parent fda9f37b3a
commit 6ad6bf95e6

View file

@ -45,7 +45,7 @@ valid_owned_repo() {
get_rights_and_owner() {
local ans
repo=${1%.git}
ans=$(perl -I$GL_BINDIR -Mgitolite -e 'cli_repo_rights("'$repo'")')
ans=$(perl -I$GL_BINDIR -Mgitolite -e "cli_repo_rights('"$repo"')")
# set shell variables as needed
owner=${ans#* }