Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default download branch to main instead of master #191

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api_generator/src/bin/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ fn main() -> anyhow::Result<()> {
let download_dir = fs::canonicalize(Path::new("./api_generator/rest_specs"))?;
let generated_dir = fs::canonicalize(Path::new("./opensearch/src"))?;
let last_downloaded_version = Path::new("./api_generator/rest_specs/last_downloaded_version");
let default_specification_download_branch = String::from("main");

let mut download_specs = false;
let mut answer = String::new();
let default_branch = if last_downloaded_version.exists() {
fs::read_to_string(last_downloaded_version)?
} else {
String::from("master")
default_specification_download_branch
};
let mut branch = default_branch.clone();

Expand Down
Loading