File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ configure_git_global "${git_config_payload}"
38
38
destination=$TMPDIR /git-resource-repo-cache
39
39
40
40
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
44
42
tagflag=" --no-tags"
43
+ elif [ -n " $tag_filter " ] || [ " $fetch_tags " == " true" ] ; then
44
+ tagflag=" --tags"
45
45
fi
46
46
47
47
# We're just checking for commits; we don't ever need to fetch LFS files here!
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ if test "$depth" -gt 0 2> /dev/null; then
75
75
fi
76
76
77
77
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
81
79
tagflag=" --no-tags"
80
+ elif [ -n " $tag_filter " ] || [ " $fetch_tags " == " true" ] ; then
81
+ tagflag=" --tags"
82
82
fi
83
83
84
84
if [ " $disable_git_lfs " == " true" ]; then
You can’t perform that action at this time.
0 commit comments