Skip to content

Commit 1282ae1

Browse files
committed
verify repo url
1 parent 1442021 commit 1282ae1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/Tegra/sync.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ function DownloadAndSync {
163163
popd > /dev/null
164164
false
165165
fi
166+
if [[ $REPO_URL != `git config remote.origin.url` ]]; then
167+
echo -e "\e[33mRepo URL are different:"
168+
echo configured: $REPO_URL
169+
echo actual: `git config remote.origin.url`
170+
echo -e "Consider removing ${WHAT} folder and start again\e[0m"
171+
fi
172+
git config remote.origin.url
166173
git tag -l 2>/dev/null | grep -q -P "^$TAG\$" || \
167174
git fetch --all 2>&1 >/dev/null || true
168175
popd > /dev/null

0 commit comments

Comments
 (0)