瀏覽代碼

Allow commented subtree sources

Willy-JL 2 年之前
父節點
當前提交
7b8c75d6ad
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .utils/update-subtree.sh

+ 3 - 0
.utils/update-subtree.sh

@@ -3,6 +3,9 @@ set -e
 
 path="${GIT_PREFIX%/}"
 while read repo branch subdir; do
+    if [ "${repo:0:1}" = "#" ]; then
+        continue
+    fi
     if [ "${subdir}" = "/" ]; then
         git subtree pull -P "${path}" "${repo}" "${branch}" -m "Merge ${path} from ${repo}"
     else