Skip to content

Commit 1d3e904

Browse files
wengxtTingPing
authored andcommitted
Allow use file protocol when update submodule.
git 2.38.1 prevent file protocol to be used by default for security reasons. Such issue does not apply to flatpak-builder since the repos are overriden with local repo on purpose. Fixes #495 Signed-off-by: Weng Xuetian <wengxt@gmail.com>
1 parent 52d05dd commit 1d3e904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder-git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ git_extract_submodule (const char *repo_location,
814814
return FALSE;
815815

816816
if (!git (checkout_dir, NULL, 0, error,
817-
"submodule", "update", "--init", path, NULL))
817+
"-c", "protocol.file.allow=always", "submodule", "update", "--init", path, NULL))
818818
return FALSE;
819819

820820
child_dir = g_file_resolve_relative_path (checkout_dir, path);

0 commit comments

Comments
 (0)