git: pass -f to git fetch

This means we handle non-fastforwarded branches
tingping/wmclass
Alexander Larsson 2017-11-07 10:21:02 +01:00
parent dbc60333da
commit a177961181
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ builder_git_mirror_repo (const char *repo_location,
{
g_print ("Fetching full git repo %s\n", repo_location);
if (!git (mirror_dir, NULL, 0, error,
"fetch", "-p", "--no-recurse-submodules", "--tags", origin, "*:*",
"fetch", "-f", "-p", "--no-recurse-submodules", "--tags", origin, "*:*",
was_shallow ? "--unshallow" : NULL,
NULL))
return FALSE;