Skip to content

Commit

Permalink
fix pruning commit when last on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
forgottosave committed Nov 26, 2024
1 parent da9d7fb commit 9d12535
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/cpplibostree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ bool OSTreeRepo::RemoveCommitFromBranchAndPrune(const Commit& commit) {
command += " " + commit.branch;
command += " " + commit.branch + "^";

return runCLICommand(command);
if (!runCLICommand(command)) {
return false;
};
}

// prune commit
Expand Down

0 comments on commit 9d12535

Please sign in to comment.