#14 fail when checking out git repository and commit doesn't exist

已合并
wbx 6 年之前 将 1 次代码提交从 ableton-dir/master合并至 oss/master
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mk/fetch.mk

+ 1 - 0
mk/fetch.mk

@@ -81,6 +81,7 @@ $(1):
 			git clone --progress $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
 			if [ $$$$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
 			(cd $${PKG_NAME}-$${PKG_VERSION}; git checkout $${PKG_VERSION}) $(DL_TRACE); \
+			if [ $$$$? -ne 0 ]; then echo "git checkout error"; exit 1; fi; \
 			;; \
 		  esac ;\
 		else \