From e1fac246098da4237c1503b8657c37ec8ee34174 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Mon, 15 Jan 2024 14:48:22 +0100 Subject: cdn: fix script --- cdn.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cdn.sh b/cdn.sh index a9b8dce..7422243 100755 --- a/cdn.sh +++ b/cdn.sh @@ -15,9 +15,8 @@ set -e echo "[1/5] Deleting old CDN branch" git branch -D cdn || true -echo "[2/5] Creating new CDN branch" -git checkout --orphan cdn -git reset --hard +echo "[2/5] Creating new CDN branch, moving all files to it" +git checkout -b cdn echo "[3/5] Removing all files except public/*" dirs=$(find . -maxdepth 1 -type d -not -name public -not -name .git -not -name . -not -name ..) -- cgit v1.3.1