You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 05:29:01 UTC

svn commit: r1131607 - /incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup

Author: benh
Date: Sun Jun  5 03:29:01 2011
New Revision: 1131607

URL: http://svn.apache.org/viewvc?rev=1131607&view=rev
Log:
Fix branch issue for ec2 deployment.

Modified:
    incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup

Modified: incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup?rev=1131607&r1=1131606&r2=1131607&view=diff
==============================================================================
--- incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup (original)
+++ incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup Sun Jun  5 03:29:01 2011
@@ -3,6 +3,9 @@ OS_NAME=$1
 DOWNLOAD_METHOD=$2
 BRANCH=$3
 
+# By exporting this git won't ask to accept a key.
+export GIT_SSH=/root/nexus-ec2/ssh-no-keychecking
+
 # Set PATH to include Scala
 export PATH=$PATH:/root/scala-2.7.7.final/bin
 
@@ -83,10 +86,9 @@ if [[ "$DOWNLOAD_METHOD" == "git" ]] ; t
   pushd /root > /dev/null 2>&1
   rm -rf nexus nexus.tgz
   # Set git SSH command to a script that uses -o StrictHostKeyChecking=no
-  GIT_SSH=/root/nexus-ec2/ssh-no-keychecking git clone $REPOSITORY nexus
+  git clone $REPOSITORY nexus
   pushd nexus 2>&1
-  GIT_SSH2=/root/nexus-ec2/ssh-no-keychecking git branch torque --track origin/torque
-  GIT_SSH3=/root/nexus-ec2/ssh-no-keychecking git checkout $BRANCH
+  git checkout -b $BRANCH --track origin/$BRANCH
   popd > /dev/null 2>&1
   popd > /dev/null 2>&1
   DOWNLOADED=1