Skip to content

Commit 810b924

Browse files
committed
Skip NFC tags in follow script to avoid tag pollution
1 parent b77b3bc commit 810b924

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

follow_nfc_examples.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ REMOTE_BRANCH="develop"
77

88
SUBDIRS=("NFCA" "NFCB" "common")
99

10+
# Prevent M5Unit-NFC's tags from polluting this repo's tag namespace.
11+
# Fetch auto-follows tags pointing to downloaded objects (git subtree's internal
12+
# fetch too), which imported NFC's 0.0.3 / 0.1.0 etc. into refs/tags here.
13+
# --no-tags on the remote disables tag-following for every fetch to it.
14+
git config remote.$REMOTE_NAME.tagOpt --no-tags
15+
1016
echo "--- 1. Fetch nfc_examples ---"
11-
git fetch $REMOTE_NAME
17+
git fetch --no-tags $REMOTE_NAME
1218

1319
for SUBDIR in "${SUBDIRS[@]}"; do
1420
SRC_DIR="examples/UnitUnified/$SUBDIR" # Path(M5Unit-NFC)

0 commit comments

Comments
 (0)