Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Jun 12, 2024
1 parent 58e5cd4 commit 3478591
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions get-modified-packages/get-modified-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ function find_package_dir() {
return 1
}

# Find modified files from base branch
modified_files=$(git diff --name-only "$base_branch"...HEAD)
# Find modified files from the base branch
modified_files=$(git diff --name-only "$base_branch"...HEAD 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[31mFailed to determine modified files. Please check if the base branch exists and fetch depth is sufficient.\e[m"
echo -e "\e[31mGit diff error details: $modified_files\e[m" # This will display the original git error
exit 1
fi

Expand Down

0 comments on commit 3478591

Please sign in to comment.