From 7183c09d11ac4b98f1cc78f29dcbd85df5533001 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 20 Apr 2009 19:44:53 +0200 Subject: [PATCH 1/2] Fix off-by-one in read_tree_recursive Found by valgrind. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tree.c b/tree.c index 0d703a0c47..5ab90af256 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; From 3ac3cfb8ebd66ff57ba5e316abddc9612e7b485e Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 18 Apr 2009 16:38:42 +0200 Subject: [PATCH 2/2] gitcvs-migration: Link to git-cvsimport documentation Signed-off-by: Frank Lichtenheld Signed-off-by: Junio C Hamano --- Documentation/gitcvs-migration.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/gitcvs-migration.txt b/Documentation/gitcvs-migration.txt index aaa7ef737a..0e49c1c037 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