From 18d212e6a9af5f4f6e83cf8358236c74e3f53d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 26 Jan 2023 13:34:16 +0100 Subject: [PATCH] [backend] fix caching when using with obs_scm_bridge It is always the same cache independ of any used subdir cgi parameter --- src/backend/call-service-in-container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/call-service-in-container b/src/backend/call-service-in-container index 298d83ffc6b..8df44ad2517 100755 --- a/src/backend/call-service-in-container +++ b/src/backend/call-service-in-container @@ -176,7 +176,7 @@ CONTAINER_VOLUMES="-v $OUTEROUTDIR:$INNEROUTDIR -v $OUTERSRCDIR:$INNERSRCDIR -v JAILED="" if [ $SCM_COMMAND -eq 1 ];then - URL_HASH=`echo $PARAM_URL|sha256sum|cut -f1 -d\ ` + URL_HASH=`echo ${PARAM_URL%\?*}|sha256sum|cut -f1 -d\ ` OUTERSCMCACHE="$SERVICES_DIR/scm-cache/$URL_HASH" INNERSCMCACHE="$INNERBASEDIR/scm-cache" create_dir "$OUTERSCMCACHE"