ソースを参照

commit 92ac067cceb772868a7e09efb1996c23eb7b90e6
Author: Jeff Bowles <jab@yahoo-inc.com>
Date: Thu Aug 26 12:55:38 2010 -0700

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


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077660 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年 前
コミット
dea60ccd17
1 ファイル変更7 行追加1 行削除
  1. 7 1
      src/test/bin/runScript.sh

+ 7 - 1
src/test/bin/runScript.sh

@@ -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" ]