From 086479f3868771bdb4669e72f410dc1eb89d8bc6 Mon Sep 17 00:00:00 2001 From: Yu Ke Date: Thu, 26 May 2011 15:29:37 +0800 Subject: [PATCH] fetch2/git: unify the nocheckout option format make the nocheckout option format to be: default is "0", use nocheckou=1 to set this option with this patch, the format will be consistant with other bitbake options like rebaseable (Bitbake rev: bd51659f5ee521cb8e6631d5f26792ab573e6b30) Signed-off-by: Yu Ke Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 12dabe3706..a05402a311 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -53,9 +53,7 @@ class Git(FetchMethod): else: ud.proto = "git" - ud.nocheckout = False - if 'nocheckout' in ud.parm: - ud.nocheckout = True + ud.nocheckout = ud.parm.get("nocheckout","0") == "1" # rebaseable means the upstream git repo may rebase in the future, # and current revision may disappear from upstream repo