Compare commits
No commits in common. "eeafddbf1ad696fa6046690a23e8f85f31371ab9" and "ec7d3b89cd721a65982e51841e0fd7f7e6941e88" have entirely different histories.
eeafddbf1a
...
ec7d3b89cd
2 changed files with 3 additions and 11 deletions
|
|
@ -64,11 +64,8 @@ scaffold_genome() {
|
|||
|
||||
install_precommit_hook() {
|
||||
local repo_path="$1"
|
||||
local hooks_dir
|
||||
hooks_dir="$(git -C "$repo_path" rev-parse --git-path hooks)"
|
||||
local hook_path="${hooks_dir}/pre-commit"
|
||||
local hook_path="${repo_path}/.git/hooks/pre-commit"
|
||||
|
||||
mkdir -p "$hooks_dir"
|
||||
cp "${TEMPLATES_DIR}/pre-commit.sh" "$hook_path"
|
||||
chmod +x "$hook_path"
|
||||
success "Pre-commit security hook installed at: $hook_path"
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ for entry in "${GENOMES[@]}"; do
|
|||
|
||||
cd "${GENOME_NAME}"
|
||||
|
||||
git switch -C main
|
||||
|
||||
# IMPORTANT: Initialize git-crypt BEFORE creating any files
|
||||
gcrypt_init
|
||||
|
||||
|
|
@ -52,12 +50,9 @@ for entry in "${GENOMES[@]}"; do
|
|||
git add .
|
||||
git commit -m "feat: initial scaffold and git-crypt init for ${GENOME_NAME}"
|
||||
|
||||
git push -u origin main
|
||||
git branch -M main
|
||||
|
||||
cd "${WORK_DIR}/${MASTER_REPO}"
|
||||
git add .gitmodules "${GENOME_NAME}"
|
||||
git commit -m "chore: register submodule ${GENOME_NAME}"
|
||||
git push
|
||||
git push -u origin main
|
||||
|
||||
# Key export and instructions
|
||||
gcrypt_export_key "${GENOME_NAME}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue