author | Mattias Nissler <mattias.nissler@gmx.de> | |
Mon, 6 Jul 2009 23:40:02 +0000 (01:40 +0200) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Sat, 11 Jul 2009 21:14:32 +0000 (14:14 -0700) | ||
commit | 0b2af457a49e3b00d47d556d5301934d27909db8 | |
tree | 4eb887c518c5b41e59b33db87024a78f288b9c70 | tree | snapshot |
parent | 3c49a03524b686c7b575e0a667736217e5445447 | commit | diff |
git-svn: Fix branch detection when repository root is inaccessible
For the case of multiple projects sharing a single SVN repository, it is
common practice to create the standard SVN directory layout within a
subdirectory for each project. In such setups, access control is often
used to limit what projects a given user may access. git-svn failed to
detect branches (e.g. when passing --stdlayout to clone) because it
relied on having access to the root directory in the repository. This
patch solves this problem by making git-svn use paths relative to the
given repository URL instead of the repository root.
Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>
For the case of multiple projects sharing a single SVN repository, it is
common practice to create the standard SVN directory layout within a
subdirectory for each project. In such setups, access control is often
used to limit what projects a given user may access. git-svn failed to
detect branches (e.g. when passing --stdlayout to clone) because it
relied on having access to the root directory in the repository. This
patch solves this problem by making git-svn use paths relative to the
given repository URL instead of the repository root.
Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | diff | blob | history | |
t/t9138-git-svn-multiple-branches.sh | diff | blob | history |