From f83f466d2f77dbb214aef95e50cc9b0b0c54184d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 30 Nov 2016 21:17:46 +0100 Subject: [PATCH] phase1: don't fail if Git is not yet cloned Signed-off-by: Jo-Philipp Wich --- phase1/master.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) -- 2.30.2