summaryrefslogtreecommitdiff
path: root/clone-repos
diff options
context:
space:
mode:
Diffstat (limited to 'clone-repos')
-rwxr-xr-xclone-repos8
1 files changed, 7 insertions, 1 deletions
diff --git a/clone-repos b/clone-repos
index 6da4bb0..bfb0a2f 100755
--- a/clone-repos
+++ b/clone-repos
@@ -16,7 +16,13 @@ while read -r type source_base64; do
)
case "${type}" in
'git')
- git -C "${base_dir}/work/repositories" clone --mirror "${source}" "${source_base64}"
+ mkdir -p "${base_dir}/work/repositories/git"
+ git -C "${base_dir}/work/repositories/git" clone --mirror "${source}" "${source_base64}"
+ ;;
+ 'hg')
+ mkdir -p "${base_dir}/work/repositories/hg"
+echo hg -y --cwd "${base_dir}/work/repositories/hg" clone "${source}" "${source_base64}"
+ hg -y --cwd "${base_dir}/work/repositories/hg" clone "${source}" "${source_base64}"
;;
*)
>&2 printf 'unknown type "%s"\n' \