Skip to content

Commit

Permalink
do not skip "--reference" if package-meta ...
Browse files Browse the repository at this point in the history
... is enabled and git's partial clone is used.

This should mainly be relevant for servers/containers running with
caching enabled (export CACHEDIRECTORY=....)

Fixes: #495
  • Loading branch information
M0ses committed Jul 28, 2024
1 parent 8ad5d21 commit 867f062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TarSCM/scm/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def prepare_working_copy(self):
use_reference = True

try:
if self.args.package_meta:
if (self.args.package_meta and not self.partial_clone):
logging.info("Not using '--reference'")
use_reference = False
except KeyError:
Expand Down

0 comments on commit 867f062

Please sign in to comment.