Willy-JL пре 2 година
родитељ
комит
2f0713fd90
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      .utils/add-subtree.sh

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

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