[376211] WTP needs to move from CVS to Git
diff --git a/releng.wtpbuilder/scripts/build/maptasks.xml b/releng.wtpbuilder/scripts/build/maptasks.xml
index 691477d..ebffefc 100644
--- a/releng.wtpbuilder/scripts/build/maptasks.xml
+++ b/releng.wtpbuilder/scripts/build/maptasks.xml
@@ -243,12 +243,17 @@
         <fail unless="cvsPackage"/>
         <fail unless="versionTagParam"/>
         <fail unless="buildDirectory"/>
-        <exec executable="git">
+        <exec failonerror="true" executable="git">
             <arg value="clone"/>
             <arg value="git://git.eclipse.org/gitroot/webtools/webtools.maps.git"/>
             <arg value="${buildDirectory}/maps/webtools.maps"/>
         </exec>
-        <exec executable="git">
+    	<exec executable="git" dir="${buildDirectory}/maps/webtools.maps">
+    	            <arg value="checkout"/>
+    	            <arg value="${mapVersionTag}"/>
+            		<arg value="origin/${mapVersionTag}"/>
+    	        </exec>
+        <exec executable="git" dir="${buildDirectory}/maps/webtools.maps">
             <arg value="checkout"/>
             <arg value="${mapVersionTag}"/>
         </exec>