ソースを参照

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