builder: Strip trailing whitespace in git submodule urls

Seen in the wild in https://github.com/Unvanquished/Unvanquished.git
This commit is contained in:
Alexander Larsson committed 2017-04-24 21:20:16 +02:00
1 parent dddb4a2e44
commit 48d9cd8eae
1 file changed
+2
+2
View File
@@ -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;