Willy-JL hace 2 años
padre
commit
2f0713fd90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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%/}"