mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-05 23:41:23 +00:00
chore: exclude fetching tags
This commit is contained in:
parent
2125c059c3
commit
dc88c3a0c5
1 changed files with 2 additions and 2 deletions
|
@ -143,13 +143,13 @@ else
|
||||||
echo "Fetching remote refs..."
|
echo "Fetching remote refs..."
|
||||||
|
|
||||||
if [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "false" ]]; then
|
if [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "false" ]]; then
|
||||||
git fetch --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH"
|
git fetch --no-tags --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH"
|
||||||
git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" 2>/dev/null || true
|
git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" 2>/dev/null || true
|
||||||
|
|
||||||
depth=$INPUT_FETCH_DEPTH
|
depth=$INPUT_FETCH_DEPTH
|
||||||
|
|
||||||
while [ -z "$( git merge-base "$TARGET_BRANCH" HEAD )" ]; do
|
while [ -z "$( git merge-base "$TARGET_BRANCH" HEAD )" ]; do
|
||||||
git fetch --deepen="$depth" origin "$TARGET_BRANCH" HEAD;
|
git fetch --no-tags --deepen="$depth" origin "$TARGET_BRANCH" HEAD;
|
||||||
depth=$((depth * 10))
|
depth=$((depth * 10))
|
||||||
max_depth=5000
|
max_depth=5000
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue