summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-29 10:13:59 +1100
committerChris Johns <chrisj@rtems.org>2018-11-29 10:16:38 +1100
commit93821feb1652a124da92692850740cc6f22263f0 (patch)
tree240a3b284251c92dc10d5fac255f23e3410f5b01
parent3bc12bbd4cfed1487a2247cf3f8ca5331cff085a (diff)
rtemstoolkit/git: Use 'git' if no macro path is present.
-rw-r--r--rtemstoolkit/git.py2
1 files changed, 1 insertions, 1 deletions
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}')