Fix replacing branch name in branch-git-repos

Change-Id: I10cd2ec4f20cb46b1f0ac45becfc90a96e51b272
See: https://mirantis.jira.com/browse/PROD-17759
diff --git a/branch-git-repos.groovy b/branch-git-repos.groovy
index 383dba0..47c143a 100644
--- a/branch-git-repos.groovy
+++ b/branch-git-repos.groovy
@@ -78,7 +78,7 @@
 
         if (gitSrcObj.contains('SUBS_SOURCE_REF')) {
             echo ("Replacing 'SUBS_SOURCE_REF' => ${SOURCE_REVISION}")
-            gitSrcObj.replace('SUBS_SOURCE_REF', srcObj)
+            gitSrcObj = gitSrcObj.replace('SUBS_SOURCE_REF', srcObj)
         }
 
         // Remove preifix `origin/` from gitSrcObj