mirror of
https://github.com/TECHNOFAB11/bump2version.git
synced 2025-12-12 08:00:09 +01:00
parse versions from .bumpversion.toml if args not passed (#2)
This commit is contained in:
parent
c9e019e8f8
commit
40399c0267
1 changed files with 1 additions and 3 deletions
|
|
@ -107,8 +107,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
match git_diff_output {
|
||||
Ok(output) => {
|
||||
if !output.stdout.is_empty() {
|
||||
// There are changes, proceed with git commit
|
||||
if output.stdout.is_empty() {
|
||||
let commit_output = Command::new("git")
|
||||
.arg("commit")
|
||||
.arg("-m")
|
||||
|
|
@ -135,7 +134,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
// No changes to commit
|
||||
println!("No changes to commit. Working tree clean.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue