builder: Strip trailing whitespace in git submodule urls

Seen in the wild in https://github.com/Unvanquished/Unvanquished.git
tingping/wmclass
Alexander Larsson 2017-04-24 21:20:16 +02:00
parent dddb4a2e44
commit 48d9cd8eae
1 changed files with 2 additions and 0 deletions

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;