Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
87 lines
2.9 KiB
Bash
Executable File
87 lines
2.9 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2020 Doan Tran Cong Danh
|
|
#
|
|
|
|
test_description='test {cherry-pick,revert} --[no-]gpg-sign'
|
|
|
|
. ./test-lib.sh
|
|
. "$TEST_DIRECTORY/lib-gpg.sh"
|
|
|
|
if ! test_have_prereq GPG
|
|
then
|
|
skip_all='skip all test {cherry-pick,revert} --[no-]gpg-sign, gpg not available'
|
|
test_done
|
|
fi
|
|
|
|
test_gpg_sign () {
|
|
local must_fail= will=will fake_editor=
|
|
if test "x$1" = "x!"
|
|
then
|
|
must_fail=test_must_fail
|
|
will="won't"
|
|
shift
|
|
fi
|
|
conf=$1
|
|
cmd=$2
|
|
cmit=$3
|
|
shift 3
|
|
test_expect_success "$cmd $* $cmit with commit.gpgsign=$conf $will sign commit" "
|
|
git reset --hard tip &&
|
|
git config commit.gpgsign $conf &&
|
|
git $cmd $* $cmit &&
|
|
git rev-list tip.. >rev-list &&
|
|
$must_fail git verify-commit \$(cat rev-list)
|
|
"
|
|
}
|
|
|
|
test_expect_success 'setup' '
|
|
test_commit one &&
|
|
git switch -c side &&
|
|
test_commit side1 &&
|
|
test_commit side2 &&
|
|
git switch - &&
|
|
test_commit two &&
|
|
test_commit three &&
|
|
test_commit tip
|
|
'
|
|
|
|
test_gpg_sign ! false cherry-pick side
|
|
test_gpg_sign ! false cherry-pick ..side
|
|
test_gpg_sign true cherry-pick side
|
|
test_gpg_sign true cherry-pick ..side
|
|
test_gpg_sign ! true cherry-pick side --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick ..side --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick side --gpg-sign --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick ..side --gpg-sign --no-gpg-sign
|
|
test_gpg_sign false cherry-pick side --no-gpg-sign --gpg-sign
|
|
test_gpg_sign false cherry-pick ..side --no-gpg-sign --gpg-sign
|
|
test_gpg_sign true cherry-pick side --edit
|
|
test_gpg_sign true cherry-pick ..side --edit
|
|
test_gpg_sign ! true cherry-pick side --edit --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick ..side --edit --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick side --edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign ! true cherry-pick ..side --edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign false cherry-pick side --edit --no-gpg-sign --gpg-sign
|
|
test_gpg_sign false cherry-pick ..side --edit --no-gpg-sign --gpg-sign
|
|
|
|
test_gpg_sign ! false revert HEAD --edit
|
|
test_gpg_sign ! false revert two.. --edit
|
|
test_gpg_sign true revert HEAD --edit
|
|
test_gpg_sign true revert two.. --edit
|
|
test_gpg_sign ! true revert HEAD --edit --no-gpg-sign
|
|
test_gpg_sign ! true revert two.. --edit --no-gpg-sign
|
|
test_gpg_sign ! true revert HEAD --edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign ! true revert two.. --edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign false revert HEAD --edit --no-gpg-sign --gpg-sign
|
|
test_gpg_sign false revert two.. --edit --no-gpg-sign --gpg-sign
|
|
test_gpg_sign true revert HEAD --no-edit
|
|
test_gpg_sign true revert two.. --no-edit
|
|
test_gpg_sign ! true revert HEAD --no-edit --no-gpg-sign
|
|
test_gpg_sign ! true revert two.. --no-edit --no-gpg-sign
|
|
test_gpg_sign ! true revert HEAD --no-edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign ! true revert two.. --no-edit --gpg-sign --no-gpg-sign
|
|
test_gpg_sign false revert HEAD --no-edit --no-gpg-sign --gpg-sign
|
|
|
|
test_done
|