Merge branch 'jk/smart-http-hide-refs'
[gitweb.git] / bulk-checkin.c
index 98e651c284254b3c96c59b4f444cbc0f54edd90e..8d157eba455f15a00cc7bf9b970f1862167ee1bb 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Copyright (c) 2011, Google Inc.
  */
+#include "cache.h"
 #include "bulk-checkin.h"
 #include "csum-file.h"
 #include "pack.h"
@@ -104,7 +105,6 @@ static int stream_to_pack(struct bulk_checkin_state *state,
        int write_object = (flags & HASH_WRITE_OBJECT);
        off_t offset = 0;
 
-       memset(&s, 0, sizeof(s));
        git_deflate_init(&s, pack_compression_level);
 
        hdrlen = encode_in_pack_object_header(type, size, obuf);