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 = {}