Skip to content

Commit

Permalink
Update diff-sha.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 4, 2022
1 parent 0f09389 commit 958d453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diff-sha.sh
Expand Up @@ -178,10 +178,10 @@ else
while ! git merge-base "$TARGET_BRANCH" "$CURRENT_BRANCH" > /dev/null; do
depth=$((depth+1024))

if [[ -d .git/shallow ]]; then
git fetch -q --deepth=$depth --unshallow origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
if [[ -f .git/shallow ]]; then
git fetch -q --deepen=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
else
git fetch -q --deepth=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
git fetch -q --depth=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
fi

if [[ $depth -gt 5000 ]]; then
Expand Down

0 comments on commit 958d453

Please sign in to comment.