summaryrefslogtreecommitdiff
path: root/hack/sync-subproject-code.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hack/sync-subproject-code.sh')
-rwxr-xr-xhack/sync-subproject-code.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hack/sync-subproject-code.sh b/hack/sync-subproject-code.sh
index 5fc64dcf3..33b439b8d 100755
--- a/hack/sync-subproject-code.sh
+++ b/hack/sync-subproject-code.sh
@@ -49,7 +49,8 @@ fi
function check-and-add-upstream() {
local upstream=$1
local upstream_url=$2
- git remote -v | grep -qE "^${upstream}\b.*${upstream_url}" || rc="$?"
+ # git remote -v | grep -qE "^${upstream}\b.*${upstream_url}" || rc="$?"
+ git remote get-url ${upstream} | grep -qE "${upstream_url}" || rc="$?"
if [[ "${rc}" -ne "0" ]]; then
printf "[INFO] git remote not found, adding: %s\t%s\n" ${upstream} ${upstream_url}
git remote add ${upstream} ${upstream_url}