forked from Mirrors/flatpak-builder
builder: Strip trailing whitespace in git submodule urls
Seen in the wild in https://github.com/Unvanquished/Unvanquished.gittingping/wmclass
parent
dddb4a2e44
commit
48d9cd8eae
|
@ -188,6 +188,8 @@ git_mirror_submodules (const char *repo_location,
|
|||
return FALSE;
|
||||
|
||||
relative_url = g_key_file_get_string (key_file, submodule, "url", error);
|
||||
/* Remove any trailing whitespace */
|
||||
g_strchomp (relative_url);
|
||||
absolute_url = make_absolute (repo_location, relative_url, error);
|
||||
if (absolute_url == NULL)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue