Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix svn on Windows #167

Merged
merged 3 commits into from
Apr 8, 2022
Merged

Conversation

billsacks
Copy link
Member

Fix svn URLs on Windows

User interface changes?: No

Fixes: #166

Testing:
test removed: none
unit tests: pass
system tests: pass
manual testing: tested obtaining CESM release-cesm2.1.3 on my Mac

From some testing, I don't think it's essential that we avoid a double
slash, but this is needed for unit tests to pass, and leads to cleaner
URLs.
Now both branches of the self._url.endswith conditional block from the
last commit are covered: test_check_url_same now covers the branch where
the URL does *not* already end with '/', and test_repo_dir_synced
appears to still cover the branch where the URL *does* already end with
'/' (based on seeing that that unit test still fails if that branch is
wrong).
@billsacks
Copy link
Member Author

I don't have a Windows machine to test on, but I can see how this code would cause problems on Windows before this change. @fischer-ncar do you have a Windows machine to test this on? If not, we could enlist someone (maybe Cheryl?) to test this on Windows, or just bring it in figuring that this at least is an improvement over the previous state.

@fischer-ncar
Copy link
Collaborator

Yes, I have several Windows machines. I'll test, approve, then merge this PR.

@billsacks
Copy link
Member Author

The user who reported this issue says that this fix solves the problem on Windows: ESCOMP/CTSM#362 (comment)

@fischer-ncar
Copy link
Collaborator

Thanks for the update. I could never get it to fail on my Windows machine.

@fischer-ncar fischer-ncar merged commit 1d880e0 into ESMCI:master Apr 8, 2022
@billsacks billsacks deleted the fix_svn_on_windows branch April 8, 2022 17:17
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.

Problem with svn URLs on Windows
2 participants