Willy-JL преди 1 година
родител
ревизия
8c44b5bc33
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      .utils/add-subtree.sh

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

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