From 2c92fcb1d6d286de3d7525c2157f09f34a7370dd Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 9 Dec 2015 21:32:18 +0100 Subject: [PATCH] builder: After fetching the mirrored git repo, set back the right origin This is nice if you want to later pull new data into the repo. --- builder/builder-source-git.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/builder-source-git.c b/builder/builder-source-git.c index 34f62cbe1..559fd9446 100644 --- a/builder/builder-source-git.c +++ b/builder/builder-source-git.c @@ -486,6 +486,10 @@ builder_source_git_extract (BuilderSource *source, if (!git_extract_submodule (url, dest, context, error)) return FALSE; + if (!git (dest, NULL, error, + "config", "--local", "remote.origin.url", url, NULL)) + return FALSE; + return TRUE; }