diff --git a/TarSCM/scm/git.py b/TarSCM/scm/git.py index cec82d6a..06f1012e 100644 --- a/TarSCM/scm/git.py +++ b/TarSCM/scm/git.py @@ -280,7 +280,7 @@ def prepare_working_copy(self): # between multiple services org_clone_dir = self.clone_dir self.clone_dir = self.repodir - command = self._get_scm_cmd() + ['clone', '--no-checkout'] + command = self._get_scm_cmd() + ['clone'] use_reference = True try: if self.args.package_meta: @@ -292,7 +292,7 @@ def prepare_working_copy(self): if use_reference: command.extend(['--reference', org_clone_dir, self.url]) else: - command.append(org_clone_dir) + command.extend(['--no-checkout', org_clone_dir]) command.append(self.clone_dir) wdir = os.path.abspath(os.path.join(self.clone_dir, os.pardir)) self.helpers.safe_run(