svn clones: fix prefix computation
commit24ba59f8b6010b70ebeba082cca9f35f8d76865a
authorKyle J. McKay <mackyle@gmail.com>
Sun, 11 Aug 2013 07:00:34 +0000 (11 00:00 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 11 Aug 2013 07:00:34 +0000 (11 00:00 -0700)
tree0e6ece1f7e7f1804d010c75e78c7318908527ee3
parent8c8525eacbebcccbbeb42c5d5387605ce87f9156
svn clones: fix prefix computation

When using the -s (--stdlayout) option, git-svn tries to be smart and
shorten the base if possible to perhaps grab more history and then glue
the removed part of the base onto the front of each fetch/branches/tags
line.

The computation to determine the actual prefix that git-svn may have added
was incorrect and failed to work properly when there was no prefix added
at all.  The new technique first computes the suffix and then removes that
to generate the prefix which always works whether there's a prefix or not.
jobd/update.sh
taskd/clone.sh