ostree export: Add --subpath support

This lets you export a subset of a commit.

Closes: #265
Approved by: cgwalters
This commit is contained in:
Alexander Larsson authored and Colin Walters (automation) committed 2016-04-19 12:28:06 +00:00
1 parent 9db2f43b14
commit 5079f70ec0
3 files changed
+22 -4

No files matched your search

+1 -1
View File
@@ -480,7 +480,7 @@ file_to_archive_entry_common (GFile *root,
g_autoptr(GVariant) xattrs = NULL;
time_t ts = (time_t) opts->timestamp_secs;
if (pathstr && !pathstr[0])
if (pathstr == NULL || !pathstr[0])
{
g_free (pathstr);
pathstr = g_strdup (".");