-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Support shallow fetch through net.git-fetch-with-cli
#15315
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For test, adding one simple backend test should be good. cargo/tests/testsuite/git_shallow.rs Lines 40 to 43 in 3e96f1a
I would also encourage to try if we can have cover more gitoxide tests for git CLI with the same switch backend trick. Also, I'd like to see a test like:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, I tried that with: It does not work.
Should I set the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the https://doc.crates.io/contrib/tests/index.html and cargo-test-support doc. You can read how other test works (not limited to git-related tests). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we are using variants other than
NoChange
/DepthAtRemote
. We might just leave thenunimplmented!(…)
.cargo/src/cargo/sources/git/mod.rs
Lines 35 to 57 in 611b7c4