Skip to content

Commit

Permalink
[backend] fix caching when using with obs_scm_bridge
Browse files Browse the repository at this point in the history
It is always the same cache independ of any used subdir cgi parameter
  • Loading branch information
Adrian Schröter committed Jan 26, 2023
1 parent cc5c763 commit 18d212e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/call-service-in-container
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 18d212e

Please sign in to comment.