only specify branch if it's none

This commit is contained in:
Jonathan Kelley 2024-11-16 14:32:34 -05:00
parent 7d353c9f17
commit fe1dd03732
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -96,7 +96,10 @@ pub(crate) fn resolve_template_and_branch(
if template.is_none() {
use crate::dx_build_info::{PKG_VERSION_MAJOR, PKG_VERSION_MINOR};
*template = Some(DEFAULT_TEMPLATE.to_string());
*branch = Some(format!("v{PKG_VERSION_MAJOR}.{PKG_VERSION_MINOR}"));
if branch.is_none() {
*branch = Some(format!("v{PKG_VERSION_MAJOR}.{PKG_VERSION_MINOR}"));
}
};
}