t7004: ship trustdb to avoid gpg warnings
[gitweb.git] / t / t0000-basic.sh
index 3260d1d7a746f6968aab0d3f374bd7e76bf33bd0..8bfe8320ea99f50c6e6c748d0b9e6b5be1a7e3d3 100755 (executable)
@@ -31,13 +31,13 @@ fi
 . ./test-lib.sh
 
 ################################################################
-# init-db has been done in an empty repository.
+# git-init has been done in an empty repository.
 # make sure it is empty.
 
 find .git/objects -type f -print >should-be-empty
 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 in an empty repo.' \
+    'cmp -s /dev/null should-be-empty'
 
 # also it should have 2 subdirectories; no fan-out anymore, pack, and info.
 # 3 is counting "objects" itself
@@ -272,4 +272,13 @@ test_expect_success \
         wc -l) &&
      test $numparent = 1'
 
+test_expect_success 'update-index D/F conflict' '
+       mv path0 tmp &&
+       mv path2 path0 &&
+       mv tmp path2 &&
+       git update-index --add --replace path2 path0/file2 &&
+       numpath0=$(git ls-files path0 | wc -l) &&
+       test $numpath0 = 1
+'
+
 test_done