aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-git-receiver.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-19 02:12:36 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-19 02:12:36 +0200
commita49da124c106dc893a71c75f67fc28de0d681b03 (patch)
treed365b8f296d29b441fc4bc65b21e9a7e12e8dc0c /src/blogc-git-receiver.c
parentd684352ff8ca444b8cdb9d05ba90a23e36a6ffe7 (diff)
downloadblogc-a49da124c106dc893a71c75f67fc28de0d681b03.tar.gz
blogc-a49da124c106dc893a71c75f67fc28de0d681b03.tar.bz2
blogc-a49da124c106dc893a71c75f67fc28de0d681b03.zip
git-receiver: call git-config with --local
Diffstat (limited to 'src/blogc-git-receiver.c')
-rw-r--r--src/blogc-git-receiver.c4
1 files changed, 2 insertions, 2 deletions
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;
}