mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Most recent Git client returns protocol in get-url origin (#2684)
This leads to constant redownloading of sources in case your access ssh, while url is not written that way.
This commit is contained in:
@@ -272,7 +272,7 @@ fetch_from_repo()
|
||||
# Then the target URL matches the local URL.
|
||||
|
||||
if [[ "$(improved_git rev-parse --git-dir 2>/dev/null)" == ".git" && \
|
||||
"$url" != "$(improved_git remote get-url origin 2>/dev/null)" ]]; then
|
||||
"$url" != *"$(improved_git remote get-url origin | sed 's/^.*@//' | sed 's/^.*\/\///' 2>/dev/null)" ]]; then
|
||||
display_alert "Remote URL does not match, removing existing local copy"
|
||||
rm -rf .git ./*
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user