mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 03:34:50 +00:00
Update diff-sha.sh
This commit is contained in:
parent
986dcdd054
commit
d3cd1f406f
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ if [[ -n "$INPUT_UNTIL" ]]; then
|
|||
fi
|
||||
else
|
||||
if [[ -z $INPUT_SHA ]]; then
|
||||
CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD) && exit_status=$? || exit_status=$?
|
||||
CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$?
|
||||
else
|
||||
CURRENT_SHA=$INPUT_SHA; exit_status=$?
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue