Просмотр исходного кода

Allow commented subtree sources

Willy-JL 2 лет назад
Родитель
Сommit
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