Commit b88a47be authored by Matthew Leeds's avatar Matthew Leeds
Browse files

flatpak: Ignore .git directory when searching for manifests

Searching .git/ for manifests is waste of resources.
parent 487ea56d
......@@ -717,7 +717,9 @@ check_dir_for_manifests (GFile *directory,
if (file_type == G_FILE_TYPE_DIRECTORY)
{
if (!check_dir_for_manifests (file, manifests, cancellable, error))
if (g_strcmp0 (name, ".git") == 0)
continue;
else if (!check_dir_for_manifests (file, manifests, cancellable, error))
return FALSE;
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment