Skip to content

fix: fixing an issue ran into while trying out renamed on annexed file#5

Closed
yarikoptic wants to merge 2 commits into
mainfrom
00-initial-design
Closed

fix: fixing an issue ran into while trying out renamed on annexed file#5
yarikoptic wants to merge 2 commits into
mainfrom
00-initial-design

Conversation

@yarikoptic

Copy link
Copy Markdown
Contributor

No description provided.

yarikoptic and others added 2 commits April 10, 2026 15:31
BUG FIX: cli/rename.py used Path.resolve() which follows symlinks,
resolving annexed files to .git/annex/objects/ paths — git mv then
fails. Fix: use Path.absolute() instead. Also fix rename.py exists()
checks to include is_symlink() for annexed files.

Constitution v1.5.0: Principle VII elevated to NON-NEGOTIABLE for
git-annex. Added explicit rules: never use resolve() on potential
symlinks, never use bare exists(), never use is_file() for iteration.
Principle V updated: git-annex testing is mandatory (bids-examples
sweep must run in both plain-git and git-annex modes).

T078 updated: bids-examples sweep now requires two modes — plain git
and git-annex (clone + force all files into annex) — verifying
equivalent results.

Co-Authored-By: Claude Code 2.1.101 / Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 5f2ad6ae099b
Add git-annex integration tests: clone bids-examples datasets, force
all files into annex, then run rename, subject-rename, and session-rename.
Verifies no files retain old labels after rename on symlinked datasets.

18 new annex integration tests across 5 representative datasets
(ds001, 7t_trt, synthetic, eeg_matchingpennies, ieeg_visual).
All operations succeed on annexed datasets with locked symlinks.

Also fix is_file() in _find_run_file test helper.

1086 integration tests pass (1068 plain + 18 annex). All tox envs green.

Co-Authored-By: Claude Code 2.1.101 / Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 8dfbc7635c4f
@yarikoptic

Copy link
Copy Markdown
Contributor Author

will be doing dance with branches renaming etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant