You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:41:23 UTC

svn commit: r1077660 - /hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh

Author: omalley
Date: Fri Mar  4 04:41:22 2011
New Revision: 1077660

URL: http://svn.apache.org/viewvc?rev=1077660&view=rev
Log:
commit 92ac067cceb772868a7e09efb1996c23eb7b90e6
Author: Jeff Bowles <ja...@yahoo-inc.com>
Date:   Thu Aug 26 12:55:38 2010 -0700

    Minor change to pull from git-repo and specific git-branch.

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh?rev=1077660&r1=1077659&r2=1077660&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh Fri Mar  4 04:41:22 2011
@@ -2,6 +2,7 @@
 
 TZ=PDT8PST  date
 TZ=EDT5EST  date
+env|grep -i branch
 
 if [ $# -eq 0 ]
 then
@@ -24,7 +25,12 @@ fi
 		then
 	    		(cd hudson && git pull)
 		else
-	    	git clone $GIT_REPO
+			[ -d internal ] && rm -rf internal
+	    		git clone $GIT_REPO internal
+			if [ -n "$GIT_SCRIPTS_BRANCH" ]
+			then
+				(cd internal && git checkout $GIT_SCRIPTS_BRANCH)
+			fi
 		fi
 	fi
 	if [ -n "$SVN_REPO" ]