(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:
parent
fda9f37b3a
commit
6ad6bf95e6
|
@ -45,7 +45,7 @@ valid_owned_repo() {
|
||||||
get_rights_and_owner() {
|
get_rights_and_owner() {
|
||||||
local ans
|
local ans
|
||||||
repo=${1%.git}
|
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
|
# set shell variables as needed
|
||||||
owner=${ans#* }
|
owner=${ans#* }
|
||||||
|
|
Loading…
Reference in a new issue