소스 검색

Skip fetch

bryan 4 일 전
부모
커밋
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