This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
gitgram-ai/aitimemachine/git/t/t1311-config-optional.sh
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
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>
2026-06-23 14:14:09 +03:00

39 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
#
# Copyright (c) 2025 Google LLC
#
test_description=':(optional) paths'
. ./test-lib.sh
test_expect_success 'var=:(optional)path-exists' '
test_config a.path ":(optional)path-exists" &&
>path-exists &&
echo path-exists >expect &&
git config get --path a.path >actual &&
test_cmp expect actual
'
test_expect_success 'missing optional value is ignored' '
test_config a.path ":(optional)no-such-path" &&
# Using --show-scope ensures we skip writing not only the value
# but also any meta-information about the ignored key.
test_must_fail git config get --show-scope --path a.path >actual &&
test_line_count = 0 actual
'
test_expect_success 'missing optional value is ignored in multi-value config' '
test_when_finished "git config unset --all a.path" &&
git config set --append a.path ":(optional)path-exists" &&
git config set --append a.path ":(optional)no-such-path" &&
>path-exists &&
echo path-exists >expect &&
git config --get --path a.path >actual &&
test_cmp expect actual
'
test_done