You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format!("Unable to set the 'core.bare' configuration option for repository '{}'", repo.name()),
102
102
&["Make sure that the git repository has been correctly initialized and run `git config core.bare true` to configure it correctly."],
103
103
)?;
104
104
105
105
Ok(())
106
106
})?;
107
107
108
-
let head_id = repository.head_id().wrap_err_as_user(
108
+
let head_id = repository.head_id().wrap_user_err(
109
109
format!("The repository '{}' did not have a valid HEAD, which may indicate that there is something wrong with the source repository.",&repo.clone_url),
110
110
&["Make sure that the remote repository is valid."],
let repository = gix::open(target).wrap_err_as_user(
124
+
let repository = gix::open(target).wrap_user_err(
125
125
format!(
126
126
"Failed to open the repository '{}' at '{}'",
127
127
&repo.clone_url,
@@ -140,7 +140,7 @@ impl GitEngine {
140
140
"Configuring fetch operation for repository {}",
141
141
target.display()
142
142
);
143
-
let remote = repository.find_fetch_remote(Some(repo.clone_url.as_str().into())).wrap_err_as_user(
143
+
let remote = repository.find_fetch_remote(Some(repo.clone_url.as_str().into())).wrap_user_err(
144
144
format!(
145
145
"Failed to find the remote '{}' in the repository '{}'",
146
146
repo.clone_url,
@@ -155,7 +155,7 @@ impl GitEngine {
155
155
.map(|s| gix::bstr::BString::from(s.as_str()))
156
156
.collect::<Vec<gix::bstr::BString>>(),
157
157
gix::remote::Direction::Fetch)
158
-
.wrap_err_as_user(
158
+
.wrap_user_err(
159
159
format!(
160
160
"Failed to configure the remote '{}' in the repository '{}' to fetch all branches.",
161
161
&repo.clone_url,
@@ -167,7 +167,7 @@ impl GitEngine {
167
167
trace!("Connecting to remote repository {}", repo.clone_url);
168
168
letmut connection = remote
169
169
.connect(gix::remote::Direction::Fetch)
170
-
.wrap_err_as_user(
170
+
.wrap_user_err(
171
171
format!(
172
172
"Unable to establish connection to remote git repository '{}'",
173
173
&repo.clone_url
@@ -183,7 +183,7 @@ impl GitEngine {
183
183
);
184
184
connection
185
185
.prepare_fetch(Discard,Default::default())
186
-
.wrap_err_as_user(
186
+
.wrap_user_err(
187
187
format!(
188
188
"Unable to prepare fetch from remote git repository '{}'",
189
189
&repo.clone_url
@@ -192,15 +192,15 @@ impl GitEngine {
192
192
)?
193
193
.with_write_packed_refs_only(true)
194
194
.receive(Discard, cancel)
195
-
.wrap_err_as_user(
195
+
.wrap_user_err(
196
196
format!(
197
197
"Unable to fetch from remote git repository '{}'",
198
198
&repo.clone_url
199
199
),
200
200
&["Make sure that the repository is available and correctly configured."],
201
201
)?;
202
202
203
-
let head_id = repository.head_id().wrap_err_as_user(
203
+
let head_id = repository.head_id().wrap_user_err(
204
204
format!("The repository '{}' did not have a valid HEAD, which may indicate that there is something wrong with the source repository.",&repo.clone_url),
205
205
&["Make sure that the remote repository is valid."],
206
206
)?;
@@ -286,7 +286,7 @@ impl GitEngine {
286
286
repo.path().join("config"),
287
287
gix::config::Source::Local,
288
288
)
289
-
.wrap_err_as_system(
289
+
.wrap_system_err(
290
290
format!(
291
291
"Unable to load git configuration for repository '{}'",
0 commit comments