Skip to contentSkip to conversation

git-svn: Fix fetch --no-ignore-externals with GIT_SVN_NO_LIB=1

PATCH In review Sergey Vlasov 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 git-svn.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
git-svn.perl +1 -0
index 0290850..2f5cf90 100755
@@ -1246,6 +1246,7 @@ sub assert_svn_wc_clean {
 	}
 	my @status = grep(!/^Performing status on external/,(`svn status`));
 	@status = grep(!/^\s*$/,@status);
+	@status = grep(!/^X/,@status) if $_no_ignore_ext;
 	if (scalar @status) {
 		print STDERR "Tree ($SVN_WC) is not clean:\n";
 		print STDERR $_ foreach @status;
Signature · 1 line
1.4.2.1.ga8608c
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Sergey Vlasov

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.

Signature · 1 line
Eric Wong