summaryrefslogtreecommitdiffstats
path: root/receive-pack.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-30 07:50:48 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-30 07:50:48 +0200
commit7f8e982834bbc476e73c2ec02ebe8749caef51bc (patch)
tree8f2be600dd47fcac953cc566b2520b6a7ded0357 /receive-pack.c
parentgit-send-pack: start parsing local/remote reference differences (diff)
downloadgit-7f8e982834bbc476e73c2ec02ebe8749caef51bc.tar.xz
git-7f8e982834bbc476e73c2ec02ebe8749caef51bc.zip
Slow but steady progress on git pack receive/send
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;
}