Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Tue, 21 Apr 2009 07:00:40 +0000 (00:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Apr 2009 07:00:40 +0000 (00:00 -0700)
* maint:
gitcvs-migration: Link to git-cvsimport documentation
Fix off-by-one in read_tree_recursive

Documentation/gitcvs-migration.txt
tree.c
index aaa7ef737a4c190c60e37e2849ce42f3bdb5dda7..0e49c1c03776af30f0509679f720273061aaa7b3 100644 (file)
@@ -118,7 +118,7 @@ Importing a CVS archive
 First, install version 2.1 or higher of cvsps from
 link:http://www.cobite.com/cvsps/[http://www.cobite.com/cvsps/] and make
 sure it is in your path.  Then cd to a checked out CVS working directory
-of the project you are interested in and run 'git-cvsimport':
+of the project you are interested in and run linkgit:git-cvsimport[1]:
 
 -------------------------------------------
 $ git cvsimport -C <destination> <module>
diff --git a/tree.c b/tree.c
index 0d703a0c473e65c60d9e130b4e1fd50b79e9462b..5ab90af256a664366f3f92b467f52634c0df3f79 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -62,6 +62,7 @@ static int match_tree_entry(const char *base, int baselen, const char *path, uns
                                continue;
                        /* pathspecs match only at the directory boundaries */
                        if (!matchlen ||
+                           baselen == matchlen ||
                            base[matchlen] == '/' ||
                            match[matchlen - 1] == '/')
                                return 1;