From: Nishanth Menon <nm@ti.com>
To: <denis@denix.org>, <praneeth@ti.com>, <yogeshs@ti.com>
Cc: meta-arago@arago-project.org
Subject: [tisdk-build-scripts PATCH 4/5] config-build-env: Make sure that the git url points correctly
Date: Fri, 9 Jul 2021 13:04:00 -0500 [thread overview]
Message-ID: <20210709180401.2977-5-nm@ti.com> (raw)
In-Reply-To: <20210709180401.2977-1-nm@ti.com>
Make sure that the build scripts git url points to the correct location.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
lib/oesdk/config-build-env | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/oesdk/config-build-env b/lib/oesdk/config-build-env
index 885fbcfb50d9..cdfa6830eb51 100644
--- a/lib/oesdk/config-build-env
+++ b/lib/oesdk/config-build-env
@@ -47,6 +47,14 @@ checkout_layer_scripts() {
else
# This looks to be a git repo. Hopefully it is the right one :)
cd $BUILD_ROOT
+ # In case we have changed the location of our build scripts
+ # we should change our git url towards it.
+ mygit='git remote get-url origin'
+ if [ "$mygit" != "$TI_SDK_OELAYER_SETUP"]; then
+ echo "$TI_SDK_OELAYER_SETUP Mismatch in git URL: $mygit vs $TI_SDK_OELAYER_SETUP. Force resetting the origin!"
+ git remote set-url origin $TI_SDK_OELAYER_SETUP
+ fi
+
git fetch
git reset --hard origin
fi
--
2.32.0
next prev parent reply other threads:[~2021-07-09 18:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 18:03 [tisdk-build-scripts PATCH 0/5] config-build-env: Switch to arago-project git Nishanth Menon
2021-07-09 18:03 ` [tisdk-build-scripts PATCH 1/5] config-build-env: Move the oe-layer-setup to a variable Nishanth Menon
2021-07-09 18:03 ` [tisdk-build-scripts PATCH 2/5] config-build-env: Lets make sure we are really in a build folder Nishanth Menon
2021-07-09 18:03 ` [tisdk-build-scripts PATCH 3/5] config-build-env: Refactor to cleanup messed up " Nishanth Menon
2021-07-09 18:04 ` Nishanth Menon [this message]
2021-07-10 13:15 ` [tisdk-build-scripts PATCH 4/5] config-build-env: Make sure that the git url points correctly Nishanth Menon
2021-07-09 18:04 ` [tisdk-build-scripts PATCH 5/5] config-build-env: Switch arago-project git repo to ti git repo Nishanth Menon
2021-07-13 3:32 ` Denys Dmytriyenko
2021-07-13 13:30 ` Nishanth Menon
2021-07-13 3:34 ` [tisdk-build-scripts PATCH 0/5] config-build-env: Switch to arago-project git Denys Dmytriyenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210709180401.2977-5-nm@ti.com \
--to=nm@ti.com \
--cc=denis@denix.org \
--cc=meta-arago@arago-project.org \
--cc=praneeth@ti.com \
--cc=yogeshs@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.