[bitbake-devel] [PATCH 1/1] git.py: create a branch when checkout
Robert Yang
liezhi.yang at windriver.com
Tue Jul 7 01:33:49 UTC 2015
Create a branch named oebuild_SRCREV when checkout the source, this
makes debug easier than "(no branch)" when look into the source.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
bitbake/lib/bb/fetch2/git.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 2e53882..12087dd 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -280,7 +280,8 @@ class Git(FetchMethod):
runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.revisions[ud.names[0]], readpathspec), d)
runfetchcmd("%s checkout-index -q -f -a" % ud.basecmd, d)
else:
- runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d)
+ runfetchcmd("%s checkout %s -b oebuild_%s" % (ud.basecmd, \
+ ud.revisions[ud.names[0]], ud.revisions[ud.names[0]]), d)
return True
def clean(self, ud, d):
--
1.7.9.5
More information about the bitbake-devel
mailing list