Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
belonesox committed Dec 18, 2021
1 parent 7177422 commit e58d7ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tito/builder/submodule_aware_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def run_git_archive(self, relative_git_dir, prefix, commit, dest_tar, subdir):
git_archive_cmd = 'git archive --format=tar --prefix=%s/ %s:%s --output=%s' % (
prefix, commit, relative_git_dir, dest_tar)

if not subdir:
subdir = os.getcwd()

with chdir(subdir) as p:
run_command(git_archive_cmd)

Expand Down

0 comments on commit e58d7ca

Please sign in to comment.