* [PATCH] git: do not execute 'git remote prune'
@ 2012-06-30 19:34 Enrico Scholz
2012-07-04 13:43 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Enrico Scholz @ 2012-06-30 19:34 UTC (permalink / raw)
To: bitbake-devel; +Cc: Enrico Scholz
'git remote prune' at this location does not make much sense because
the following 'git remote rm' will prune stale and non-stale branches.
The 'prune' can cause trouble because it will access the network
bypassing the no-network code in bitbake. When this operation fails and
throws an exception, the next command (--> 'git remote rm') will be
skipped. This in turn, will make all the following operations fail,
because they assume that the remote does not exist yet.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
lib/bb/fetch2/git.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 8544860..c5ccdfd 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -207,7 +207,6 @@ class Git(FetchMethod):
needupdate = True
if needupdate:
try:
- runfetchcmd("%s remote prune origin" % ud.basecmd, d)
runfetchcmd("%s remote rm origin" % ud.basecmd, d)
except bb.fetch2.FetchError:
logger.debug(1, "No Origin")
--
1.7.10.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] git: do not execute 'git remote prune'
2012-06-30 19:34 [PATCH] git: do not execute 'git remote prune' Enrico Scholz
@ 2012-07-04 13:43 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-07-04 13:43 UTC (permalink / raw)
To: Enrico Scholz; +Cc: bitbake-devel
On Sat, 2012-06-30 at 21:34 +0200, Enrico Scholz wrote:
> 'git remote prune' at this location does not make much sense because
> the following 'git remote rm' will prune stale and non-stale branches.
>
> The 'prune' can cause trouble because it will access the network
> bypassing the no-network code in bitbake. When this operation fails and
> throws an exception, the next command (--> 'git remote rm') will be
> skipped. This in turn, will make all the following operations fail,
> because they assume that the remote does not exist yet.
>
> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
> ---
> lib/bb/fetch2/git.py | 1 -
> 1 file changed, 1 deletion(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-04 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30 19:34 [PATCH] git: do not execute 'git remote prune' Enrico Scholz
2012-07-04 13:43 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox