git-svn: Fix fetch --no-ignore-externals with GIT_SVN_NO_LIB=1
When using Subversion 1.3.1 without Perl bindings (GIT_SVN_NO_LIB=1), "git-svn fetch --no-ignore-externals" fails with errors like: Tree (.../.git/svn/git-svn/tree) is not clean: X directory_with_external In this case the 'X' lines in the "svn status" output are not a sign of unclean tree, and therefore should be ignored. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Sergey Vlasov committed
Sep 26, 2006 at 13:42 UTC
191414c025c3f0032d9b4843d629e4877126a748
1 file changed
+1
git-svn.perl
+1
@@ -1247,6 +1247,7 @@ sub assert_svn_wc_clean {
1247
}
1248
my @status = grep(!/^Performing status on external/,(`svn status`));
1249
@status = grep(!/^\s*$/,@status);
1250
+ @status = grep(!/^X/,@status) if $_no_ignore_ext;
1251
if (scalar @status) {
1252
print STDERR "Tree ($SVN_WC) is not clean:\n";
1253
print STDERR $_ foreach @status;