Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 25, 2022
1 parent cfc8494 commit 941c21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function deepenShallowCloneToFindCommit() {
local depth=20
local max_depth=$INPUT_MAX_FETCH_DEPTH

while ! git rev-parse --quiet --verify "$ref^{commit}" 1>/dev/null 2>&1; do # !0 = true = not found
while ! git rev-parse --quiet --verify "$ref^{commit}" &>/dev/null; do # !0 = true = not found
echo "::debug::Unable to find commit '$ref' in shallow clone. Increasing depth to $((depth * 2))..."

depth=$((depth * 2))
Expand Down

0 comments on commit 941c21b

Please sign in to comment.