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>
58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='check bitmap operation with shallow repositories'
|
|
|
|
. ./test-lib.sh
|
|
|
|
# We want to create a situation where the shallow, grafted
|
|
# view of reachability does not match reality in a way that
|
|
# might cause us to send insufficient objects.
|
|
#
|
|
# We do this with a history that repeats a state, like:
|
|
#
|
|
# A -- B -- C
|
|
# file=1 file=2 file=1
|
|
#
|
|
# and then create a shallow clone to the second commit, B.
|
|
# In a non-shallow clone, that would mean we already have
|
|
# the tree for A. But in a shallow one, we've grafted away
|
|
# A, and fetching A to B requires that the other side send
|
|
# us the tree for file=1.
|
|
test_shallow_bitmaps () {
|
|
writeLookupTable=false
|
|
|
|
for i in "$@"
|
|
do
|
|
case $i in
|
|
"pack.writeBitmapLookupTable") writeLookupTable=true;;
|
|
esac
|
|
done
|
|
|
|
test_expect_success 'setup shallow repo' '
|
|
rm -rf * .git &&
|
|
git init &&
|
|
git config pack.writeBitmapLookupTable '"$writeLookupTable"' &&
|
|
echo 1 >file &&
|
|
git add file &&
|
|
git commit -m orig &&
|
|
echo 2 >file &&
|
|
git commit -a -m update &&
|
|
git clone --no-local --bare --depth=1 . shallow.git &&
|
|
echo 1 >file &&
|
|
git commit -a -m repeat
|
|
'
|
|
|
|
test_expect_success 'turn on bitmaps in the parent' '
|
|
git repack -adb
|
|
'
|
|
|
|
test_expect_success 'shallow fetch from bitmapped repo' '
|
|
(cd shallow.git && git fetch)
|
|
'
|
|
}
|
|
|
|
test_shallow_bitmaps
|
|
test_shallow_bitmaps "pack.writeBitmapLookupTable"
|
|
|
|
test_done
|