소스 검색

fetch site repo updates before checking out a specific commit

Helge Jung 9 년 전
부모
커밋
48ddc0042d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      build.sh

+ 2 - 0
build.sh

@@ -91,6 +91,8 @@ if [ "_$SITE" == "_" ]; then
 	git checkout -q $BRANCH ; git pull
 	[ "$?" -eq "0" ] || abort "Failed to get newest '$BRANCH' in site repository, mimimi."
 else
+	# fetch site repo updates
+	git fetch || true
 	# commit given - use this one
 	git checkout -q $SITE || abort "Failed to checkout requested site commit, mimimi."
 fi