mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 19:41:20 +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
|
fi
|
||||||
else
|
else
|
||||||
if [[ -z $INPUT_SHA ]]; then
|
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
|
else
|
||||||
CURRENT_SHA=$INPUT_SHA; exit_status=$?
|
CURRENT_SHA=$INPUT_SHA; exit_status=$?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue