mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Fixed issue #413
This commit is contained in:
parent
813713b290
commit
f5d61594e3
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ class SubmoduleAwareBuilder(Builder):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue