From 6866858a930fe2928f723420f4005e639ee45bd5 Mon Sep 17 00:00:00 2001 From: Sarah L Duncan Date: Tue, 17 Jun 2025 16:51:08 -0400 Subject: [PATCH] make git clone command copy files, not contents of .git --- ondemand/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ondemand/install.sh b/ondemand/install.sh index 546e5ac..cbf7855 100755 --- a/ondemand/install.sh +++ b/ondemand/install.sh @@ -84,8 +84,8 @@ rm -rf /var/cache/dnf log_info "Cloning repos to assist with app development.." mkdir -p /var/git -git clone https://github.com/OSC/bc_example_jupyter.git --bare /var/git/bc_example_jupyter -git clone https://github.com/OSC/ood-example-ps.git --bare /var/git/ood-example-ps +git clone --depth 1 https://github.com/OSC/bc_example_jupyter.git /var/git/bc_example_jupyter && rm -rf /var/git/bc_example_jupyter/.git +git clone --depth 1 https://github.com/OSC/ood-example-ps.git /var/git/ood-example-ps && rm -rf /var/git/ood-example-ps/.git log_info "Enabling app development for hpcadmin..." mkdir -p /var/www/ood/apps/dev/hpcadmin