Willy-JL 2 tahun lalu
induk
melakukan
d3c1453999
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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|blob)/([^/]+)/(.*)|\1/\2/\3 \4 \5|" <<< "${repo}")"
+    read repo branch subdir <<< "$(sed -E "s|(https?://[^/]+)/([^/]+)/([^/]+)/(tree\|blob)/([^/]+)/(.*)|\1/\2/\3 \5 \6|" <<< "${repo}")"
 else
     branch="${3}"
     subdir="${4%/}"