* [PATCH] toaster: fix checking of repository url
@ 2016-09-14 11:03 Ed Bartosh
2016-09-16 16:24 ` Michael Wood
0 siblings, 1 reply; 2+ messages in thread
From: Ed Bartosh @ 2016-09-14 11:03 UTC (permalink / raw)
To: toaster
Toaster checks gir repository url is the same as locally cloned before
checking it out to existing local clone. This check can be skipped if
commit is 'HEAD' as in this case repository is not hard reset to
commit, so the local clone won't be changed.
[YOCTO #10163]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 39de6dd..a64e89b 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -156,7 +156,7 @@ class LocalhostBEController(BuildEnvironmentController):
try:
localremotes = self._shellcmd("git remote -v",
localdirname)
- if not giturl in localremotes:
+ if not giturl in localremotes and commit != 'HEAD':
raise BuildSetupException("Existing git repository at %s, but with different remotes ('%s', expected '%s'). Toaster will not continue out of fear of damaging something." % (localdirname, ", ".join(localremotes.split("\n")), giturl))
except ShellCmdException:
# our localdirname might not be a git repository
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] toaster: fix checking of repository url
2016-09-14 11:03 [PATCH] toaster: fix checking of repository url Ed Bartosh
@ 2016-09-16 16:24 ` Michael Wood
0 siblings, 0 replies; 2+ messages in thread
From: Michael Wood @ 2016-09-16 16:24 UTC (permalink / raw)
To: Ed Bartosh, toaster@yoctoproject.org
Thanks - send to bitbake-devel and applied to toaster-next
On 14/09/16 12:03, Ed Bartosh wrote:
> Toaster checks gir repository url is the same as locally cloned before
> checking it out to existing local clone. This check can be skipped if
> commit is 'HEAD' as in this case repository is not hard reset to
> commit, so the local clone won't be changed.
>
> [YOCTO #10163]
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> ---
> bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
> index 39de6dd..a64e89b 100644
> --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
> +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
> @@ -156,7 +156,7 @@ class LocalhostBEController(BuildEnvironmentController):
> try:
> localremotes = self._shellcmd("git remote -v",
> localdirname)
> - if not giturl in localremotes:
> + if not giturl in localremotes and commit != 'HEAD':
> raise BuildSetupException("Existing git repository at %s, but with different remotes ('%s', expected '%s'). Toaster will not continue out of fear of damaging something." % (localdirname, ", ".join(localremotes.split("\n")), giturl))
> except ShellCmdException:
> # our localdirname might not be a git repository
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-16 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 11:03 [PATCH] toaster: fix checking of repository url Ed Bartosh
2016-09-16 16:24 ` Michael Wood
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.