From: Carl Hetherington Date: Thu, 4 Jun 2020 18:38:53 +0000 (+0200) Subject: Fix unreference variable. X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=ef54a3d24627bebe7f27c05d94aaadf886fbb107;hp=67642fc3e9809396d6e5dfbcb3b19aea980899f9;p=cdist.git Fix unreference variable. --- diff --git a/cdist b/cdist index 1aff482..6829244 100755 --- a/cdist +++ b/cdist @@ -906,6 +906,8 @@ class Tree(object): redirect = '>/dev/null' if config.has('git_reference'): ref = '--reference-if-able %s/%s.git' % (config.get('git_reference'), self.name) + else: + ref = '' command('git clone %s %s %s/%s.git %s/src/%s' % (flags, ref, config.get('git_prefix'), self.name, target.directory, self.name)) os.chdir('%s/src/%s' % (target.directory, self.name))