aboutsummaryrefslogtreecommitdiff
path: root/brep/handler/submit/submit-git.bash.in
diff options
context:
space:
mode:
Diffstat (limited to 'brep/handler/submit/submit-git.bash.in')
-rw-r--r--brep/handler/submit/submit-git.bash.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/brep/handler/submit/submit-git.bash.in b/brep/handler/submit/submit-git.bash.in
index a36164c..56cce33 100644
--- a/brep/handler/submit/submit-git.bash.in
+++ b/brep/handler/submit/submit-git.bash.in
@@ -211,7 +211,7 @@ function auth_package () # <project> <package> <control> <repo-dir>
local prj="$1"
local pkg="$2"
- local ctl="$3"
+ local ctl="${3%.git}" # Strip the potential .git extension.
local rep="$4"
local d
@@ -238,9 +238,11 @@ function auth_package () # <project> <package> <control> <repo-dir>
#
manifest_parser_start "$m"
+ # Match the control URL without regards to the potential .git extension.
+ #
local n v
while IFS=: read -ru "$manifest_parser_ofd" -d '' n v; do
- if [ "$n" == "control" -a "$v" == "$ctl" ]; then
+ if [ "$n" == "control" -a "${v%.git}" == "$ctl" ]; then
r="package"
break
fi