Make check_existing function return whether a path exists - #250
Closed
James Frost (jfrost-mo) wants to merge 1 commit into
Closed
Make check_existing function return whether a path exists#250James Frost (jfrost-mo) wants to merge 1 commit into
James Frost (jfrost-mo) wants to merge 1 commit into
Conversation
This avoids the need to seperately check this in other code.
|
Hello James Frost (@jfrost-mo)! 👋 Thank you for your contribution. Since this is your first time contributing to this repository, we ask that you sign our Contributor Licence Agreement (CLA). To agree to the CLA, please add your details (GitHub username, Real Name, Affiliation, and Date) to the CONTRIBUTORS.md file (create one, if required) in the development branch for this PR. After signing the CLA, you won't need to do this again for future PRs. |
Member
Author
|
Ack, stacked PRs don't work across forks! I'll open this as one PR then. |
James Frost (jfrost-mo)
deleted the
refactor_git_source_check_existing
branch
September 4, 2026 13:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Make check_existing function return whether a path exists. This avoids the need to separately check this in other code.
This is a refactoring PR ahead of some modifications to the cloning function; I have split it into a separate PR for ease of review as it touches a couple places that are otherwise unaffected.
Sci/Tech Reviewer:
Code Reviewer:
Code Quality Checklist
Testing
I have run an existing workflow (
u-dn674) with this change and observed no change in behaviour.Security Considerations
No change in security properties. The same check happens, just within the function rather than outside it. This makes it harder to forget.
AI Assistance and Attribution
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review