pungi/pungi
Lubomír Sedlář ff4e6d4782 scm-wrapper: Refactor getting files from Git
Before this patch, there were two code paths: either getting the only
the wanted content by calling git-archive, or cloning the repository and
copying the files.

Both these approaches have the downside of not allowing retriving
content from a specific git commit.

The workaround is to create a new empty repo (in the location to which
we cloned previously), fetching the specific commit to there and then
checking it out.

This supports any commit and works identically for any protocol. The
downside is that all files in that commit will be downloaded. It should
be no worse than the git-clone path, but can result in bigger transfers
than git-archive.

Unfortunately this is only supported with git 2.5+. On older version
fetch will fail with no error message (tested with 1.8.3). This can be
used to fall back to full clone. This fallback is clearly suboptimal in
terms of data transfer, but it should work reliably.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-03-01 09:40:30 +01:00
..
compose_metadata Use $SOURCE_DATE_EPOCH (if set) in discinfo file 2018-10-08 13:33:29 +02:00
ostree Cleanup parsing treefile 2018-11-19 11:59:32 +01:00
phases osbs: Fix wrong message in logs 2019-02-28 09:00:47 +01:00
wrappers scm-wrapper: Refactor getting files from Git 2019-03-01 09:40:30 +01:00
__init__.py Include exact version of pungi in the logs 2018-07-26 17:03:58 -04:00
arch.py arch: Drop mapping ppc64 -> ppc64p7 2018-05-16 16:25:58 +02:00
arch_utils.py Remove useless shebang 2018-02-20 10:13:09 +01:00
checks.py Read koji event from config file 2019-02-26 10:52:45 +01:00
common.py Remove FSF address from copyright headers 2017-03-24 09:24:48 +01:00
compose.py Read koji event from config file 2019-02-26 10:52:45 +01:00
config.py pungi-legacy: expose lorax's --rootfs-size argument 2019-01-14 10:41:37 +01:00
createiso.py Make the Apple/HFS compatibility configurable 2019-02-21 16:11:01 +01:00
dnf_wrapper.py gather: Ignore comps in lookaside repo 2018-06-08 13:32:24 +02:00
gather.py pungi-legacy: expose lorax's --rootfs-size argument 2019-01-14 10:41:37 +01:00
gather_dnf.py Fix tests for DNF 3 2018-07-19 14:22:10 +02:00
graph.py Variant as a lookaside - configuration 2018-04-13 14:14:43 +02:00
ks.py Write package whitelist for each variant 2018-03-08 14:29:23 +01:00
linker.py Add script to orchestrate multiple composes 2019-01-08 09:40:36 +01:00
media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
metadata.py buildinstall: Fix treeinfo generating on failure 2018-01-17 13:57:49 +01:00
multilib_dnf.py Port to Python 3 2017-10-24 15:15:31 +02:00
multilib_yum.py Use pungi.util.pkg_is_debug() instead of pungi.gather.is_debug() 2017-07-26 23:18:15 +02:00
notifier.py notification: Add more info into the messages 2017-10-31 11:11:04 +01:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py fus: Write solvables to file 2018-10-17 10:14:04 +02:00
profiler.py gather: Print profiling information to stderr 2018-04-25 14:21:09 +02:00
util.py image-build: Support repo/install_tree as path 2019-02-25 08:18:47 +01:00