浏览代码

Skip fetch

bryan 3 天之前
父节点
当前提交
86f5bf7e3f
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      openwrtbuilder

+ 0 - 7
openwrtbuilder

@@ -512,13 +512,6 @@ from_source() {
 
   echo "Building from source is under development"
 
-  # Ensure branch exists locally (if it's a branch)
-  if git -C "$SRC_DIR" show-ref --verify --quiet "refs/heads/$ref"; then
-    if ! git -C "$SRC_DIR" worktree list | grep -q "$ref"; then
-      execute git -C "$SRC_DIR" fetch origin "$ref:$ref"
-    fi
-  fi
-
   # Remove all build directories and worktrees
   if ((RESET)); then
     if [[ -d "$BUILD_DIR" || -d "$worktree_meta" ]]; then