From 110917f8b35e359cc90c9dff1889185173deb70a Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 26 Jul 2025 19:44:32 +0200 Subject: [PATCH] Fix https://github.com/gptme/gptme-agent-template/issues/21 --- fork.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fork.sh b/fork.sh index 36da94c..b4adf7d 100755 --- a/fork.sh +++ b/fork.sh @@ -109,16 +109,16 @@ copy_file lessons/tools/shell-heredoc.md # Copy templates copy_file */templates/*.md -# Create initial setup task from template -cp "${TARGET_DIR}/tasks/templates/initial-agent-setup.md" "${TARGET_DIR}/tasks/" -./scripts/tasks.py edit initial-agent-setup --set created $(iso_datetime) - # Initialize git (cd "${TARGET_DIR}" && git init) # Clone the gptme-contrib submodule (cd "${TARGET_DIR}" && git submodule add https://github.com/gptme/gptme-contrib.git gptme-contrib) +# Create initial setup task from template +cp "${TARGET_DIR}/tasks/templates/initial-agent-setup.md" "${TARGET_DIR}/tasks/" +(cd "${TARGET_DIR}" && ./scripts/tasks.py edit initial-agent-setup --set created $(iso_datetime)) + # If pre-commit is installed # Install pre-commit hooks command -v pre-commit > /dev/null && (cd "${TARGET_DIR}" && pre-commit install)