diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-10 10:42:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-10 10:42:56 +0200 |
| commit | 1670f11b1d4a7988df30e44c1e5a27e2221cff21 (patch) | |
| tree | 43467a056432cf6cda30cfb02513676ad6bb1707 | |
| parent | cbd6aeaf61b8e14e3c3305ee04f17f87cbecff70 (diff) | |
Try to fix to not assume master.
| -rwxr-xr-x | cdist | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1015,11 +1015,8 @@ class Tree(object): 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)) - spec = self.specifier - if spec is None: - spec = 'master' - - command('git checkout %s %s %s' % (flags, spec, redirect)) + if self.specifier is not None: + command('git checkout %s %s %s' % (flags, self.specifier, redirect)) self.git_commit = command_and_read('git rev-parse --short=7 HEAD')[0].strip() self.cscript = {} |
