File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,18 @@ pub struct Repository {
143
143
}
144
144
145
145
impl Repository {
146
+ /// Clones the crate index from a remote git server and returns a
147
+ /// `Repository` struct to interact with the local copy of the crate index.
148
+ ///
149
+ /// Note that the `user` configuration for the repository is automatically
150
+ /// set to `bors <bors@rust-lang.org>`.
151
+ ///
152
+ /// # Errors
153
+ ///
154
+ /// - If creation of a temporary folder for cloning the crate index fails.
155
+ /// - If cloning the crate index fails.
156
+ /// - If reading the global git config fails.
157
+ ///
146
158
pub fn open ( repository_config : & RepositoryConfig ) -> Result < Self , PerformError > {
147
159
let checkout_path = tempfile:: Builder :: new ( ) . prefix ( "git" ) . tempdir ( ) ?;
148
160
You can’t perform that action at this time.
0 commit comments