Remove git_repository field from GitConfig
It is no longer needed after a recent refactoring.
This commit is contained in:
parent
645d0ad2a4
commit
a4b9a1b4da
11 changed files with 0 additions and 15 deletions
|
|
@ -61,7 +61,6 @@ impl Tool {
|
|||
artifacts_server,
|
||||
artifacts_with_llvm_assertions_server,
|
||||
git_merge_commit_email,
|
||||
git_repository,
|
||||
nightly_branch,
|
||||
} = &self.config;
|
||||
|
||||
|
|
@ -72,7 +71,6 @@ impl Tool {
|
|||
artifacts_with_llvm_assertions_server
|
||||
));
|
||||
file_content.push_str(&format!("git_merge_commit_email={}\n", git_merge_commit_email));
|
||||
file_content.push_str(&format!("git_repository={}\n", git_repository));
|
||||
file_content.push_str(&format!("nightly_branch={}\n", nightly_branch));
|
||||
|
||||
file_content.push_str("\n");
|
||||
|
|
|
|||
|
|
@ -399,7 +399,6 @@ pub struct Config {
|
|||
pub nocapture: bool,
|
||||
|
||||
// Needed both to construct build_helper::git::GitConfig
|
||||
pub git_repository: String,
|
||||
pub nightly_branch: String,
|
||||
pub git_merge_commit_email: String,
|
||||
|
||||
|
|
@ -511,7 +510,6 @@ impl Config {
|
|||
|
||||
pub fn git_config(&self) -> GitConfig<'_> {
|
||||
GitConfig {
|
||||
git_repository: &self.git_repository,
|
||||
nightly_branch: &self.nightly_branch,
|
||||
git_merge_commit_email: &self.git_merge_commit_email,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,7 +175,6 @@ impl ConfigBuilder {
|
|||
self.host.as_deref().unwrap_or("x86_64-unknown-linux-gnu"),
|
||||
"--target",
|
||||
self.target.as_deref().unwrap_or("x86_64-unknown-linux-gnu"),
|
||||
"--git-repository=",
|
||||
"--nightly-branch=",
|
||||
"--git-merge-commit-email=",
|
||||
"--minicore-path=",
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
|||
"run tests which rely on commit version being compiled into the binaries",
|
||||
)
|
||||
.optopt("", "edition", "default Rust edition", "EDITION")
|
||||
.reqopt("", "git-repository", "name of the git repository", "ORG/REPO")
|
||||
.reqopt("", "nightly-branch", "name of the git branch for nightly", "BRANCH")
|
||||
.reqopt(
|
||||
"",
|
||||
|
|
@ -440,7 +439,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
|||
|
||||
nocapture: matches.opt_present("no-capture"),
|
||||
|
||||
git_repository: matches.opt_str("git-repository").unwrap(),
|
||||
nightly_branch: matches.opt_str("nightly-branch").unwrap(),
|
||||
git_merge_commit_email: matches.opt_str("git-merge-commit-email").unwrap(),
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use suggest_tests::get_suggestions;
|
|||
fn main() -> ExitCode {
|
||||
let modified_files = get_git_modified_files(
|
||||
&GitConfig {
|
||||
git_repository: &env("SUGGEST_TESTS_GIT_REPOSITORY"),
|
||||
nightly_branch: &env("SUGGEST_TESTS_NIGHTLY_BRANCH"),
|
||||
git_merge_commit_email: &env("SUGGEST_TESTS_MERGE_COMMIT_EMAIL"),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue