From: Jo-Philipp Wich Date: Wed, 30 Nov 2016 20:17:46 +0000 (+0100) Subject: phase1: don't fail if Git is not yet cloned X-Git-Tag: v1~211 X-Git-Url: http://git.openwrt.org/?p=buildbot.git;a=commitdiff_plain;h=f83f466d2f77dbb214aef95e50cc9b0b0c54184d phase1: don't fail if Git is not yet cloned Signed-off-by: Jo-Philipp Wich --- diff --git a/phase1/master.cfg b/phase1/master.cfg index e445359..12f7393 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -316,7 +316,7 @@ for target in targets: factory.addStep(ShellCommand( name = "switchbranch", description = "Checking out Git branch", - command = ["git", "checkout", repo_branch], + command = "if [ -d .git ]; then git checkout '%s'; else exit 0; fi" % repo_branch, haltOnFailure = True, doStepIf = IsNoTaggingRequested ))