Willy-JL 2 лет назад
Родитель
Сommit
d3c1453999
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .utils/add-subtree.sh

+ 1 - 1
.utils/add-subtree.sh

@@ -9,7 +9,7 @@ fi
 path="${1%/}"
 path="${1%/}"
 repo="${2%/}"
 repo="${2%/}"
 if [ "$3" = "" ]; then
 if [ "$3" = "" ]; then
-    read repo branch subdir <<< "$(sed -E "s|(https?://[^/]+)/([^/]+)/([^/]+)/(?:tree|blob)/([^/]+)/(.*)|\1/\2/\3 \4 \5|" <<< "${repo}")"
+    read repo branch subdir <<< "$(sed -E "s|(https?://[^/]+)/([^/]+)/([^/]+)/(tree\|blob)/([^/]+)/(.*)|\1/\2/\3 \5 \6|" <<< "${repo}")"
 else
 else
     branch="${3}"
     branch="${3}"
     subdir="${4%/}"
     subdir="${4%/}"