From 93821feb1652a124da92692850740cc6f22263f0 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 29 Nov 2018 10:13:59 +1100 Subject: rtemstoolkit/git: Use 'git' if no macro path is present. --- rtemstoolkit/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemstoolkit/git.py b/rtemstoolkit/git.py index b92391f..f65300b 100644 --- a/rtemstoolkit/git.py +++ b/rtemstoolkit/git.py @@ -66,7 +66,7 @@ class repo: self.macros = opts.defaults else: self.macros = macros - if self.macros is None: + if self.macros is None or not self.macros.has_key('__git'): self.git = 'git' else: self.git = self.macros.expand('%{__git}') -- cgit v1.2.3