Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix "with reference" case of Git.prepare_working_copy #229

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TarSCM/scm/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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(
Expand Down