Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Create objects/info/ directory in init-db.
author
Junio C Hamano
<junkio@cox.net>
Sat, 20 Aug 2005 09:05:31 +0000
(
02:05
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 20 Aug 2005 17:59:28 +0000
(10:59 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
init-db.c
patch
|
blob
|
history
t/t0000-basic.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
b909a15
)
diff --git
a/init-db.c
b/init-db.c
index 1fb3f7fa79136f296ece9e04f6fdbf34bb40eeeb..50b16b34b0e3a3fe4de29252eb9261055913e262 100644
(file)
--- a/
init-db.c
+++ b/
init-db.c
@@
-249,5
+249,7
@@
int main(int argc, char **argv)
}
strcpy(path+len, "/pack");
safe_create_dir(path);
}
strcpy(path+len, "/pack");
safe_create_dir(path);
+ strcpy(path+len, "/info");
+ safe_create_dir(path);
return 0;
}
return 0;
}
diff --git
a/t/t0000-basic.sh
b/t/t0000-basic.sh
index 547488bd25a060ba0701f838ffb936a8e9fd91b3..142b7bf388bbaa1f93dcf9069086e3d6ef02887b 100755
(executable)
--- a/
t/t0000-basic.sh
+++ b/
t/t0000-basic.sh
@@
-28,11
+28,12
@@
test_expect_success \
'.git/objects should be empty after git-init-db in an empty repo.' \
'cmp -s /dev/null should-be-empty'
'.git/objects should be empty after git-init-db in an empty repo.' \
'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
test_expect_success \
find .git/objects -type d -print >full-of-directories
test_expect_success \
- '.git/objects should have 25
7
subdirectories.' \
- 'test $(wc -l < full-of-directories) = 25
8
'
+ '.git/objects should have 25
8
subdirectories.' \
+ 'test $(wc -l < full-of-directories) = 25
9
'
################################################################
# Basics of the basics
################################################################
# Basics of the basics