Skip to content

ttx_diff: make repository root check more robust#1641

Merged
rsheeter merged 1 commit into
mainfrom
ttx-diff-expect-fontc-root
Sep 18, 2025
Merged

ttx_diff: make repository root check more robust#1641
rsheeter merged 1 commit into
mainfrom
ttx-diff-expect-fontc-root

Conversation

@anthrotype

Copy link
Copy Markdown
Member

The script previously checked if the current directory was named "fontc" to ensure it was running from the repository root.

This check is too restrictive and fails when using git worktree (for checking out a branch into separate directories) or if the repository itself was cloned with a different name than "fontc".

Replace the directory name check with a verification for the existence of fontc/Cargo.toml. This is a more reliable way to confirm the script is being executed from the correct location without depending on the name of the root folder.

JMM

The script previously checked if the current directory was named
"fontc" to ensure it was running from the repository root.

This check is too restrictive and fails when using `git worktree`
(for checking out a branch into separate directories) or if the
repository itself was cloned with a different name than "fontc".

Replace the directory name check with a verification for the
existence of `fontc/Cargo.toml`. This is a more reliable way to
confirm the script is being executed from the correct location
without depending on the name of the root folder.
@rsheeter rsheeter added this pull request to the merge queue Sep 18, 2025
Merged via the queue into main with commit f4ec0d9 Sep 18, 2025
12 checks passed
@rsheeter rsheeter deleted the ttx-diff-expect-fontc-root branch September 18, 2025 15:47
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.

2 participants