Skip to content

Commit

Permalink
Fixed issue #413
Browse files Browse the repository at this point in the history
  • Loading branch information
t0fik authored and FrostyX committed Oct 4, 2022
1 parent 813713b commit f5d6159
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ 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 subdir is None:
run_command(git_archive_cmd)
return

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

Expand Down

0 comments on commit f5d6159

Please sign in to comment.