]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
build_clone: Move git_massage_url to build_url_vcs
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 12 Jul 2016 16:14:29 +0000 (16:14 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 12 Jul 2016 17:41:23 +0000 (17:41 +0000)
The effect is that ts-xen-build (the only other caller of
build_url_vcs) now gets the massaged rather than unmassaged urls.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm

index 485a29a09207491bfe17e6d64aa56be3ac7e1a4d..d0d6ef3a4e6cf47de0fa9af1ea395c99e9165a3d 100644 (file)
@@ -1287,6 +1287,10 @@ sub build_url_vcs ($) {
        }
     }
 
+    if (($vcs // '<unknown>') eq 'git') {
+       $tree = git_massage_url($tree);
+    }
+
     return ($tree, $vcs);
 }
 
@@ -1314,11 +1318,9 @@ END
 END
     } elsif ($vcs eq 'git') {
 
-       my $eff_tree = git_massage_url($tree);
-
         target_cmd_build($ho, $timeout, $builddir, <<END.
             $rm
-            git clone '$eff_tree' $subdir
+            git clone '$tree' $subdir
             cd $subdir
 END
                          (length($r{"revision_$which"}) ? <<END : ''));