ostree export: Add --subpath support
This lets you export a subset of a commit. Closes: #265 Approved by: cgwalters
This commit is contained in:
1 parent
9db2f43b14
commit
5079f70ec0
3 files changed
+22
-4
No files matched your search
@@ -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 (".");
|
||||
|
||||
Reference in new issue
Block a user