Skip to content

Fix duplicate elseif condition in interpret_repo_and_remotes#2928

Open
singhharsh1708 wants to merge 2 commits into
JuliaDocs:masterfrom
singhharsh1708:fix/issue-2868-duplicate-elseif
Open

Fix duplicate elseif condition in interpret_repo_and_remotes#2928
singhharsh1708 wants to merge 2 commits into
JuliaDocs:masterfrom
singhharsh1708:fix/issue-2868-duplicate-elseif

Conversation

@singhharsh1708
Copy link
Copy Markdown

The second elseif branch had the same condition as the first (startswith(makedocs_root_remoteref.root, makedocs_root_repo)), but its comment described the opposite case: the git repo root being more specific (nested deeper) than the remotes path. Fix it to use startswith(makedocs_root_repo, makedocs_root_remoteref.root). Fixes #2868

Harsh Singh added 2 commits April 26, 2026 15:06
The second elseif branch had the same condition as the first
(startswith(makedocs_root_remoteref.root, makedocs_root_repo)),
but its comment described the opposite case: the git repo root being
more specific (nested deeper) than the remotes path. Fix it to use
startswith(makedocs_root_repo, makedocs_root_remoteref.root).
Fixes JuliaDocs#2868
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.

Duplicate elseif condition in interpret_repo_and_remotes

1 participant