Skip to content

Commit d57306c

Browse files
author
Junio C Hamano
committed
Create objects/info/ directory in init-db.
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent b909a15 commit d57306c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

init-db.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,7 @@ int main(int argc, char **argv)
249249
}
250250
strcpy(path+len, "/pack");
251251
safe_create_dir(path);
252+
strcpy(path+len, "/info");
253+
safe_create_dir(path);
252254
return 0;
253255
}

t/t0000-basic.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ test_expect_success \
2828
'.git/objects should be empty after git-init-db in an empty repo.' \
2929
'cmp -s /dev/null should-be-empty'
3030

31-
# also it should have 257 subdirectories. 258 is counting "objects"
31+
# also it should have 258 subdirectories; 256 fan-out, pack, and info.
32+
# 259 is counting "objects" itself
3233
find .git/objects -type d -print >full-of-directories
3334
test_expect_success \
34-
'.git/objects should have 257 subdirectories.' \
35-
'test $(wc -l < full-of-directories) = 258'
35+
'.git/objects should have 258 subdirectories.' \
36+
'test $(wc -l < full-of-directories) = 259'
3637

3738
################################################################
3839
# Basics of the basics

0 commit comments

Comments
 (0)