Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'receive-pack.c')
-rw-r--r--receive-pack.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/receive-pack.c b/receive-pack.c
index 13d0b668f0..ce0b3c5795 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -203,7 +203,9 @@ int main(int argc, char **argv)
packet_flush(1);
read_head_info();
- unpack();
- execute_commands();
+ if (commands) {
+ unpack();
+ execute_commands();
+ }
return 0;
}