-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update how locked git commits are fetched
This commit refactors various logic of the git source internals to ensure that if we have a locked revision that we plumb the desired branch/tag all the way through to the `fetch`. Previously we'd switch to `Rev` very early on, but the fetching logic for `Rev` is very eager and fetches too much, so instead we only resolve the locked revision later on. Internally this does some various refactoring to try to make various bits and pieces of logic a bit easyer to grok, although it's still perhaps not the cleanest implementation.
- Loading branch information
1 parent
437e5d7
commit ddc2799
Showing
5 changed files
with
124 additions
and
116 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub use self::source::GitSource; | ||
pub use self::utils::{fetch, GitCheckout, GitDatabase, GitRemote, GitRevision}; | ||
pub use self::utils::{fetch, GitCheckout, GitDatabase, GitRemote}; | ||
mod source; | ||
mod utils; |
This file contains 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
Oops, something went wrong.