From a500b2a432148040ae826c960c5693812c574e09 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 1 May 2015 20:00:30 +0000 Subject: Use DefinitionsRepo in build command This allows using `morph build`, `morph distbuild` and `morph distbuild-start` from any Git checkout of a definitions.git repo, so nobody needs to use `morph checkout` or `morph branch` if they don't want to. Change-Id: I5fdfae0f8bec1953893e26f0d227e289da11fa84 --- morphlib/gitdir.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'morphlib/gitdir.py') diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index 8716da16..48fab3fe 100644 --- a/morphlib/gitdir.py +++ b/morphlib/gitdir.py @@ -618,6 +618,9 @@ class GitDirectory(object): # ref wasn't a branch, can't have upstream # treat it the same as no upstream for convenience return None + elif 'No such branch' in emsg: + # Same as above + return None elif 'No upstream configured for branch' in emsg: return None raise -- cgit v1.2.1