mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-20 22:55:16 -04:00
builder: Strip trailing whitespace in git submodule urls
Seen in the wild in https://github.com/Unvanquished/Unvanquished.git
This commit is contained in:
1 parent
dddb4a2e44
commit
48d9cd8eae
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user