Skip to content
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
8 changes: 6 additions & 2 deletions tmt/steps/prepare/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tmt.steps.prepare
import tmt.utils
from tmt.container import container, field
from tmt.guest import Guest
from tmt.guest import DEFAULT_PULL_OPTIONS, Guest
from tmt.package_managers import Package
from tmt.steps.prepare import PreparePlugin
from tmt.steps.prepare.install import PrepareInstallData
Expand Down Expand Up @@ -300,7 +300,11 @@ def go(

# Make sure to pull back sources ...
# FIXME -- Do we need to? Can be lot of data...
guest.pull(source_dir)
# Exclude .git, it might be being modified by git garbage collection,
# leading to rsync error. And we do not need this directory.
opt = DEFAULT_PULL_OPTIONS.copy()
opt.exclude.append('.git')
guest.pull(source_dir, options=opt)

# Mark which file/dirs were created after rpmbuild ran
content_after = set(source_dir.iterdir())
Expand Down
Loading