From a49da124c106dc893a71c75f67fc28de0d681b03 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 19 Jun 2016 02:12:36 +0200 Subject: git-receiver: call git-config with --local --- src/blogc-git-receiver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/blogc-git-receiver.c b/src/blogc-git-receiver.c index 084a778..e717259 100644 --- a/src/blogc-git-receiver.c +++ b/src/blogc-git-receiver.c @@ -282,8 +282,8 @@ cleanup: static int git_post_receive_hook(int argc, char *argv[]) { - if (0 != system("git config remote.mirror.pushurl &> /dev/null")) { - if (0 != system("git config remote.mirror.url &> /dev/null")) { + if (0 != system("git config --local remote.mirror.pushurl &> /dev/null")) { + if (0 != system("git config --local remote.mirror.url &> /dev/null")) { fprintf(stderr, "warning: repository mirroring disabled\n"); return 0; } -- cgit v1.2.3-18-g5258