Skip to content

Commit

Permalink
feat: Make git fetch error print the target refspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinhyeok committed Mar 3, 2024
1 parent 9454b34 commit e75ad6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipelines/github_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl GithubActions {
let github_ref = self.env_var("GITHUB_REF");
let refspec = format!("{}:{}", github_ref, github_ref);
git_service::fetch_refs(&repo, &self.git_username(), &self.git_token(), &[&refspec])
.unwrap_or_else(|e| panic!("Failed to fetch GITHUB_REF: {}", e));
.unwrap_or_else(|e| panic!("Failed to fetch GITHUB_REF: {}\n{}", github_ref, e));

// Checkout GITHUB_REF
git_service::checkout(&repo, &github_ref).unwrap_or_else(|e| panic!("{}", e));
Expand Down

0 comments on commit e75ad6a

Please sign in to comment.