diff options
author | Junio C Hamano <junkio@cox.net> | 2007-05-20 00:19:30 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-20 00:19:30 -0700 |
commit | 03f6db0ec058ca1d34672a3100293c3bf56c3b6b (patch) | |
tree | 38949f1dc69f9423ea74e99381ce6083d740540a /git-svn.perl | |
parent | 404fdef22f1084141aeef5781d5a322554fed481 (diff) | |
parent | f7b47b273ed2c9e9b298c4f5dd02884b46dfbced (diff) | |
download | git-03f6db0ec058ca1d34672a3100293c3bf56c3b6b.tar.gz |
Merge branch 'maint' to synchronize with 1.5.1.6
* maint:
GIT 1.5.1.6
git-svn: don't minimize-url when doing an init that tracks multiple paths
git-svn: avoid crashing svnserve when creating new directories
user-manual: Add section on ignoring files
user-manual: finding commits referencing given file content
user-manual: discourage shared repository
tutorial: revise index introduction
tutorials: add user-manual links
Conflicts:
GIT-VERSION-GEN
RelNotes
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl index f4c9ff1b85..eda9969f50 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -485,6 +485,11 @@ sub cmd_multi_init { unless (defined $_trunk || defined $_branches || defined $_tags) { usage(1); } + + # there are currently some bugs that prevent multi-init/multi-fetch + # setups from working well without this. + $Git::SVN::_minimize_url = 1; + $_prefix = '' unless defined $_prefix; if (defined $url) { $url =~ s#/+$##; @@ -2841,8 +2846,10 @@ sub close_edit { my ($self) = @_; my ($p,$bat) = ($self->{pool}, $self->{bat}); foreach (sort { $b =~ tr#/#/# <=> $a =~ tr#/#/# } keys %$bat) { + next if $_ eq ''; $self->close_directory($bat->{$_}, $p); } + $self->close_directory($bat->{''}, $p); $self->SUPER::close_edit($p); $p->clear; } |