Update diff-sha.sh
This commit is contained in:
parent
0f09389954
commit
958d453c5d
@ -178,10 +178,10 @@ else
|
|||||||
while ! git merge-base "$TARGET_BRANCH" "$CURRENT_BRANCH" > /dev/null; do
|
while ! git merge-base "$TARGET_BRANCH" "$CURRENT_BRANCH" > /dev/null; do
|
||||||
depth=$((depth+1024))
|
depth=$((depth+1024))
|
||||||
|
|
||||||
if [[ -d .git/shallow ]]; then
|
if [[ -f .git/shallow ]]; then
|
||||||
git fetch -q --deepth=$depth --unshallow origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
|
git fetch -q --deepen=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
|
||||||
else
|
else
|
||||||
git fetch -q --deepth=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
|
git fetch -q --depth=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $depth -gt 5000 ]]; then
|
if [[ $depth -gt 5000 ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user