aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-21 00:00:40 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-21 00:00:40 -0700
commit062868cc003d5952f11c7c9cd3940ae7d675960a (patch)
treee8e3310849fe470972980cc983f8420cf867bdcf
parentfe3420b616eba8027b080dc81020b0e0990f4809 (diff)
parent3ac3cfb8ebd66ff57ba5e316abddc9612e7b485e (diff)
downloadgit-062868cc003d5952f11c7c9cd3940ae7d675960a.tar.gz
git-062868cc003d5952f11c7c9cd3940ae7d675960a.tar.xz
Merge branch 'maint'
* maint: gitcvs-migration: Link to git-cvsimport documentation Fix off-by-one in read_tree_recursive
-rw-r--r--Documentation/gitcvs-migration.txt2
-rw-r--r--tree.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/gitcvs-migration.txt b/Documentation/gitcvs-migration.txt
index aaa7ef737..0e49c1c03 100644
--- a/Documentation/gitcvs-migration.txt
+++ b/Documentation/gitcvs-migration.txt
@@ -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 0d703a0c4..5ab90af25 100644
--- 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;