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>
68 lines
2.3 KiB
Bash
Executable File
68 lines
2.3 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
|
|
#
|
|
|
|
test_description='Gettext Shell fallbacks'
|
|
|
|
GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=YesPlease
|
|
export GIT_INTERNAL_GETTEXT_TEST_FALLBACKS
|
|
|
|
. ./lib-gettext.sh
|
|
|
|
test_expect_success "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
|
|
test -n "$GIT_INTERNAL_GETTEXT_SH_SCHEME"
|
|
'
|
|
|
|
test_expect_success 'sanity: $GIT_INTERNAL_GETTEXT_TEST_FALLBACKS is set' '
|
|
test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS"
|
|
'
|
|
|
|
test_expect_success 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is fallthrough' '
|
|
echo fallthrough >expect &&
|
|
echo $GIT_INTERNAL_GETTEXT_SH_SCHEME >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'gettext: our gettext() fallback has pass-through semantics' '
|
|
printf "test" >expect &&
|
|
gettext "test" >actual &&
|
|
test_cmp expect actual &&
|
|
printf "test more words" >expect &&
|
|
gettext "test more words" >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'eval_gettext: our eval_gettext() fallback has pass-through semantics' '
|
|
printf "test" >expect &&
|
|
eval_gettext "test" >actual &&
|
|
test_cmp expect actual &&
|
|
printf "test more words" >expect &&
|
|
eval_gettext "test more words" >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'eval_gettext: our eval_gettext() fallback can interpolate variables' '
|
|
printf "test YesPlease" >expect &&
|
|
GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=YesPlease eval_gettext "test \$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'eval_gettext: our eval_gettext() fallback can interpolate variables with spaces' '
|
|
cmdline="git am" &&
|
|
export cmdline &&
|
|
printf "When you have resolved this problem, run git am --resolved." >expect &&
|
|
eval_gettext "When you have resolved this problem, run \$cmdline --resolved." >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'eval_gettext: our eval_gettext() fallback can interpolate variables with spaces and quotes' '
|
|
cmdline="git am" &&
|
|
export cmdline &&
|
|
printf "When you have resolved this problem, run \"git am --resolved\"." >expect &&
|
|
eval_gettext "When you have resolved this problem, run \"\$cmdline --resolved\"." >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_done
|