소스 검색

for BASE=master checkout the one from origin

Previously, the locally-checked-out master got checked out which was
obviously not the intended behaviour.
Helge Jung 9 년 전
부모
커밋
30a7d37eab
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      build.sh

+ 6 - 1
build.sh

@@ -78,7 +78,12 @@ fi
 progress "Checking out GLUON '$BASE' ..."
 cd $CODE_DIR
 # TODO: check if gluon got modified and bail out if necessary
-git fetch ; git checkout -q $BASE
+git fetch
+if [ "$BASE" = "master" ]; then
+	git checkout -q origin/master
+else
+	git checkout -q $BASE
+fi
 [ "$?" -eq "0" ] || abort "Failed to checkout '$BASE' gluon base version, mimimi." >&2
 GLUON_COMMIT=$(git rev-list --max-count=1 HEAD)