Skip to content

fix: resolve wrong merge base in readme-index sync - #147

Merged
WeilerP merged 1 commit into
mainfrom
fix/readme_sync
Sep 8, 2026
Merged

WeilerP merged 1 commit into
mainfrom
fix/readme_sync

Conversation

@WeilerP

@WeilerP WeilerP commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Bug fixes

  • Fix wrong merge base in .sync_readme_to_index.sh

Related issues

Closes #146.

`git show HEAD:"$README"` resolves paths relative to the repo
root, not the script's cwd, when given without a leading `./`.
The sync-readme-to-index hook always runs from the generated
project's own directory, so this fetched the outer template's
root README.md as the merge base instead of the project's
README.md, corrupting notebooks/index.md with spurious conflict
markers on any nontrivial edit.

Prefix the path with `./` so the lookup resolves relative to
cwd instead of the repo root.
@WeilerP
WeilerP merged commit ef7d2b9 into main Sep 8, 2026
2 checks passed
@WeilerP
WeilerP deleted the fix/readme_sync branch September 8, 2026 19:12
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.

.sync_readme_to_index.sh merges against the wrong base file when run from a subdirectory

1 participant