Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jonathanj
Copy link
Contributor

@jonathanj jonathanj commented Apr 16, 2025

In the case where get_push_remote would have returned Ok(None) now first try get_default_push_remote which will consult the remote.pushDefault git config option, before either returning the fallback push remote, or no result.

Fixes #346

@codecov
Copy link

codecov bot commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.64%. Comparing base (42ef8f1) to head (11b34db).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/git/remote.rs 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
+ Coverage   86.60%   86.64%   +0.04%     
==========================================
  Files          66       66              
  Lines        6100     6126      +26     
==========================================
+ Hits         5283     5308      +25     
- Misses        817      818       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@altsem altsem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! tests, and nice commit message. I'll just merge it.

@altsem altsem merged commit 5b0a23b into altsem:master Apr 17, 2025
5 checks passed
@jonathanj jonathanj deleted the 346-push-remote-fallback branch April 18, 2025 05:52
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.

remote.pushDefault is not consulted before prompting for a pushRemote

2 participants