Skip to content

Commit fbbbc36

Browse files
bookgitster
authored andcommitted
cvsimport: have default merge regex allow for dashes in the branch name
The default value of @mergerx uses \w, which matches word character; a branch name like policy-20050608-br will not be matched. Signed-off-by: Philippe Bruhat (BooK) <book@cpan.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b75bb1d commit fbbbc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cvsimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ sub read_repo_config {
164164

165165
our @mergerx = ();
166166
if ($opt_m) {
167-
@mergerx = ( qr/\b(?:from|of|merge|merging|merged) (\w+)/i );
167+
@mergerx = ( qr/\b(?:from|of|merge|merging|merged) ([-\w]+)/i );
168168
}
169169
if ($opt_M) {
170170
push (@mergerx, qr/$opt_M/);

0 commit comments

Comments
 (0)