Create objects/info/ directory in init-db.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-08-20 02:05:31 -07:00
Родитель b909a15ede
Коммит d57306c794
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -249,5 +249,7 @@ int main(int argc, char **argv)
} }
strcpy(path+len, "/pack"); strcpy(path+len, "/pack");
safe_create_dir(path); safe_create_dir(path);
strcpy(path+len, "/info");
safe_create_dir(path);
return 0; return 0;
} }

Просмотреть файл

@ -28,11 +28,12 @@ test_expect_success \
'.git/objects should be empty after git-init-db in an empty repo.' \ '.git/objects should be empty after git-init-db in an empty repo.' \
'cmp -s /dev/null should-be-empty' 'cmp -s /dev/null should-be-empty'
# also it should have 257 subdirectories. 258 is counting "objects" # also it should have 258 subdirectories; 256 fan-out, pack, and info.
# 259 is counting "objects" itself
find .git/objects -type d -print >full-of-directories find .git/objects -type d -print >full-of-directories
test_expect_success \ test_expect_success \
'.git/objects should have 257 subdirectories.' \ '.git/objects should have 258 subdirectories.' \
'test $(wc -l < full-of-directories) = 258' 'test $(wc -l < full-of-directories) = 259'
################################################################ ################################################################
# Basics of the basics # Basics of the basics