Skip to content

Commit 467097a

Browse files
committed
check/in: tag_filter doesn't affect fetch_tags
As aoldershaw suggested, fetch_tags should always apply event if tag_filter defined. Signed-off-by: talset <talset55@gmail.com>
1 parent b2fff42 commit 467097a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

assets/check

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ configure_git_global "${git_config_payload}"
3838
destination=$TMPDIR/git-resource-repo-cache
3939

4040
tagflag=""
41-
if [ -n "$tag_filter" ] || [ "$fetch_tags" == "true" ] ; then
42-
tagflag="--tags"
43-
elif [ "$fetch_tags" == "false" ] ; then
41+
if [ "$fetch_tags" == "false" ] ; then
4442
tagflag="--no-tags"
43+
elif [ -n "$tag_filter" ] || [ "$fetch_tags" == "true" ] ; then
44+
tagflag="--tags"
4545
fi
4646

4747
# We're just checking for commits; we don't ever need to fetch LFS files here!

assets/in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ if test "$depth" -gt 0 2> /dev/null; then
7575
fi
7676

7777
tagflag=""
78-
if [ -n "$tag_filter" ] || [ "$fetch_tags" == "true" ] ; then
79-
tagflag="--tags"
80-
elif [ "$fetch_tags" == "false" ] ; then
78+
if [ "$fetch_tags" == "false" ] ; then
8179
tagflag="--no-tags"
80+
elif [ -n "$tag_filter" ] || [ "$fetch_tags" == "true" ] ; then
81+
tagflag="--tags"
8282
fi
8383

8484
if [ "$disable_git_lfs" == "true" ]; then

0 commit comments

Comments
 (0)