Compare commits
No commits in common. "58147ae99cd3ef8d725abfea4d5f3cbf791478b8" and "c81b7e41856022f9c9282d057b7095e336369515" have entirely different histories.
58147ae99c
...
c81b7e4185
3 changed files with 4 additions and 12 deletions
2
Makefile
2
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
# =============================================================================
|
||||
# Knowledge Genome - Makefile v. 1.2.2
|
||||
# Knowledge Genome - Makefile v. 1.2.1
|
||||
# Orchestrates the setup and management of the knowledge base.
|
||||
# =============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -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