aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/vcs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/repository/vcs')
-rw-r--r--crates/shirabe/src/repository/vcs/forgejo_driver.rs10
-rw-r--r--crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs7
-rw-r--r--crates/shirabe/src/repository/vcs/github_driver.rs16
-rw-r--r--crates/shirabe/src/repository/vcs/gitlab_driver.rs24
4 files changed, 14 insertions, 43 deletions
diff --git a/crates/shirabe/src/repository/vcs/forgejo_driver.rs b/crates/shirabe/src/repository/vcs/forgejo_driver.rs
index ca7e9dd..30a0932 100644
--- a/crates/shirabe/src/repository/vcs/forgejo_driver.rs
+++ b/crates/shirabe/src/repository/vcs/forgejo_driver.rs
@@ -625,17 +625,11 @@ impl ForgejoDriver {
})?;
return Ok(Response::new(
- {
- let mut m = IndexMap::new();
- m.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
- m
- },
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
if !self.inner.io.has_authentication(&self.inner.origin_url) {
diff --git a/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs b/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs
index 85288bd..644ac90 100644
--- a/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs
+++ b/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs
@@ -728,15 +728,12 @@ impl GitBitbucketDriver {
if !self.inner.io.is_interactive() && fetching_repo_data {
self.attempt_clone_fallback()?;
- let mut headers: IndexMap<String, PhpMixed> = IndexMap::new();
- headers
- .insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- headers,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )??);
+ ));
}
}
}
diff --git a/crates/shirabe/src/repository/vcs/github_driver.rs b/crates/shirabe/src/repository/vcs/github_driver.rs
index 076f4a0..093cd03 100644
--- a/crates/shirabe/src/repository/vcs/github_driver.rs
+++ b/crates/shirabe/src/repository/vcs/github_driver.rs
@@ -1046,16 +1046,12 @@ impl GitHubDriver {
self.attempt_clone_fallback(Some(&e))
.map_err(|err| TransportException::new(err.to_string(), 0))?;
- let mut req = IndexMap::new();
- req.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- req,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
let mut scopes_issued: Vec<String> = vec![];
@@ -1112,16 +1108,12 @@ impl GitHubDriver {
self.attempt_clone_fallback(Some(&e))
.map_err(|err| TransportException::new(err.to_string(), 0))?;
- let mut req = IndexMap::new();
- req.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- req,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
let rate_limited = git_hub_util
diff --git a/crates/shirabe/src/repository/vcs/gitlab_driver.rs b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
index 6f2c4e9..3e2cd38 100644
--- a/crates/shirabe/src/repository/vcs/gitlab_driver.rs
+++ b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
@@ -841,16 +841,12 @@ impl GitLabDriver {
self.attempt_clone_fallback()
.map_err(|e| TransportException::new(e.to_string(), 0))?;
- let mut req = IndexMap::new();
- req.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- req,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
}
@@ -919,16 +915,12 @@ impl GitLabDriver {
self.attempt_clone_fallback()
.map_err(|err| TransportException::new(err.to_string(), 0))?;
- let mut req = IndexMap::new();
- req.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- req,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
self.inner.io.write_error3(
&format!(
@@ -960,16 +952,12 @@ impl GitLabDriver {
self.attempt_clone_fallback()
.map_err(|err| TransportException::new(err.to_string(), 0))?;
- let mut req = IndexMap::new();
- req.insert("url".to_string(), PhpMixed::String("dummy".to_string()));
return Ok(Response::new(
- req,
+ "dummy".to_string(),
Some(200),
vec![],
Some("null".to_string()),
- )
- .unwrap()
- .unwrap());
+ ));
}
Err(e)