Skip to content

Commit e37894b

Browse files
committed
test
1 parent 436ae53 commit e37894b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

block-sha1/sha1.h

+1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx);
2121
#define platform_SHA1_Init blk_SHA1_Init
2222
#define platform_SHA1_Update blk_SHA1_Update
2323
#define platform_SHA1_Final blk_SHA1_Final
24+
#define platform_SHA1_Test blk_SHA1_Test
2425
#endif

loose.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
2-
31
#include "git-compat-util.h"
42
#include "hash.h"
53
#include "path.h"
64
#include "object-store.h"
75
#include "hex.h"
6+
#include "repository.h"
87
#include "wrapper.h"
98
#include "gettext.h"
109
#include "loose.h"
@@ -142,8 +141,8 @@ int repo_write_loose_object_map(struct repository *repo)
142141

143142
for (; iter != kh_end(map); iter++) {
144143
if (kh_exist(map, iter)) {
145-
if (oideq(&kh_key(map, iter), the_hash_algo->empty_tree) ||
146-
oideq(&kh_key(map, iter), the_hash_algo->empty_blob))
144+
if (oideq(&kh_key(map, iter), repo->hash_algo->empty_tree) ||
145+
oideq(&kh_key(map, iter), repo->hash_algo->empty_blob))
147146
continue;
148147
strbuf_addf(&buf, "%s %s\n", oid_to_hex(&kh_key(map, iter)), oid_to_hex(kh_value(map, iter)));
149148
if (write_in_full(fd, buf.buf, buf.len) < 0)

0 commit comments

Comments
 (0)