Skip to content

Commit

Permalink
fix texts
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisLiraC committed May 27, 2024
1 parent 8768737 commit 90f1ab4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() {
.arg("-c")
.arg(format!("echo \"DIFF_FILES={:?}\" >> $GITHUB_OUTPUT", filtered_files))
.output()
.expect("Failed to execute DIFF command");
.expect("Failed to execute DIFF_FILES command");

Command::new("sh")
.arg("-c")
Expand Down Expand Up @@ -106,11 +106,11 @@ fn get_changed_files() -> Vec<String> {
.arg("-c")
.arg(format!("git fetch origin {}", base_ref_env))
.output()
.expect("Failed to execute DIFF_COUNT command");
.expect("Failed to execute fetch branch command");

let base_ref_string = format!("refs/remotes/origin/{}", base_ref_env);
let base_ref = repository.find_reference(&base_ref_string).expect("Failed to find main branch");
let base_commit = base_ref.peel_to_commit().expect("Failed to peel main branch to commit");
let base_ref = repository.find_reference(&base_ref_string).expect("Failed to find default branch");
let base_commit = base_ref.peel_to_commit().expect("Failed to peel default branch to commit");

let diff = repository.diff_tree_to_tree(
Some(&base_commit.tree().expect("Failed to get base tree")),
Expand Down

0 comments on commit 90f1ab4

Please sign in to comment.