projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbce5d8
)
Don't output error on changes in the nodes /, /tags or /branches
author
Yaacov Akiba Slama
<ya@slamail.org>
Wed, 2 Nov 2005 21:51:57 +0000
(23:51 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 8 Nov 2005 09:24:48 +0000
(
01:24
-0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svnimport.perl
patch
|
blob
|
history
diff --git
a/git-svnimport.perl
b/git-svnimport.perl
index
83b70f9
..
ea5bbdb
100755
(executable)
--- a/
git-svnimport.perl
+++ b/
git-svnimport.perl
@@
-336,7
+336,12
@@
sub split_path($$) {
} elsif($path =~ s#^/\Q$branch_name\E/([^/]+)/?##) {
$branch = $1;
} else {
- print STDERR "$rev: Unrecognized path: $path\n";
+ my %no_error = (
+ "/" => 1,
+ "/$tag_name" => 1,
+ "/$branch_name" => 1
+ );
+ print STDERR "$rev: Unrecognized path: $path\n" unless (defined $no_error{$path});
return ()
}
$path = "/" if $path eq "";