[rtems-tools commit] rtemstoolkit/git: Use 'git' if no macro path is present.
Chris Johns
chrisj at rtems.org
Wed Nov 28 23:20:23 UTC 2018
Module: rtems-tools
Branch: master
Commit: 93821feb1652a124da92692850740cc6f22263f0
Changeset: http://git.rtems.org/rtems-tools/commit/?id=93821feb1652a124da92692850740cc6f22263f0
Author: Chris Johns <chrisj at rtems.org>
Date: Thu Nov 29 10:13:59 2018 +1100
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}')
More information about the vc
mailing list