From 5968e81b17efba958dfe43770607aa478d99b184 Mon Sep 17 00:00:00 2001 From: Andreas Litt Date: Thu, 23 Apr 2015 15:17:25 +0200 Subject: [PATCH] exec git-receive-pack with correct path --- plugins/git/commands | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/git/commands b/plugins/git/commands index beb967289..993ab6e16 100755 --- a/plugins/git/commands +++ b/plugins/git/commands @@ -87,7 +87,11 @@ EOF chmod +x $PRERECEIVE_HOOK fi - args=$* + if [[ $1 == "git-receive-pack" ]]; then + args="$1 '$APP_PATH'" + else + args=$* + fi git-shell -c "$args" ;;