- 
                Notifications
    You must be signed in to change notification settings 
- Fork 22
trailing slahes were not handled properly when parsing the owner and repo #156
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
Conversation
| PR Reviewer Guide 🔍Here are some key observations to aid the review process: 
 | 
| PR Code Suggestions ✨Explore these optional code suggestions: 
 | 
…items` by 77% in PR #156 (`get_repo_owner_fix`) To optimize the provided Python code for better performance, we can reduce redundant checks and improve the loop efficiency. Here's an optimized version that maintains the same functionality while potentially running faster. ### Summary of Changes. 1. **Reduced redundant checks:** Combined the fixturenames and marker checks into fewer lines and skipped the iteration as soon as the benchmark fixture or marker is found. 2. **Improved readability and clarity:** The logic is more straightforward, reducing complexity and the number of inspections on each loop iteration, potentially improving runtime performance.
| ⚡️ Codeflash found optimizations for this PR📄 77% (0.77x) speedup for  | 
| @misrasaurabh1 ready to approve | 
User description
trailing slahes were not handled properly when parsing the owner and repo
PR Type
Description
Adjust repository URL parsing to handle trailing slashes.
Remove redundant commented code in git_utils.
Add test cases for SSH URL trailing slash scenario.
Changes walkthrough 📝
git_utils.py
Update get_repo_owner_and_name to handle trailing slashes.codeflash/code_utils/git_utils.py
test_git_utils.py
Add new test for trailing slash in git utils parsing.tests/test_git_utils.py