git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] GIT 1.6.4-rc2

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 24, 2009, 09:38 UTC
Message-ID
<20090724093847.GA20338@dcvr.yhbt.net>
In-Reply-To
<7vd47r298e.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
>  * git-svn updates, including a new --authors-prog option to map author
>    names by invoking an external program, 'git svn reset' to unwind
>    'git svn fetch', support for more than one branches, etc.

I completely forgot the implications of a change made in commit 0b2af457a49e3b00d47d556d5301934d27909db8. This change probably doesn't affect a lot of repos out there, but --minimize-url is no longer the default for new imports.

The good thing is that access-limited repositories are easier to setup and import. So if you only had access for a sub_project under the repository root in svn://example.com/big_project/sub_project, you won't need read permissions to / or /big_project, just /big_project/sub_project and everything under it.

Unfortunately, this default breaks the case where a project is moved to a lower-level within the repository:

svn://example.com/foo => svn://example.com/big_project/sub_project

Without --minimize-url enabled, your clone would register "/big_project/sub_project" to track and not be able to find the history of "/foo". With --minimize-url (the old behavior), you would've registered "/" to be able to track all subdirectories underneath the repository root (assuming the SVN repo is world-readable).

While both cases are fairly rare, I've personally encountered the latter (and now broken-by-default) case more. This is because I mainly use git/git svn to work on free software without read restrictions. However, with more and more free projects switching entirely to git, maybe leaving the default to be more friendly to people on restrictive setups will be more helpful than harmful.

This change only affects the creation of new clones, existing repos are unaffected.

Let me know if the above made sense, it's late and I nodded off several times while writing this.

-- 
Eric Wong
Previous: Tony FinchNext: Junio C Hamano
Message 3 of 12 in “[ANNOUNCE] GIT 1.6.4-rc2”
  1. Junio C HamanoJul 23, 2009
  2. Tony FinchJul 23, 2009
  3. Eric WongJul 24, 2009
  4. Junio C HamanoJul 24, 2009
  5. Eric WongJul 25, 2009
  6. 2/2 git svn: the branch command no longer needs the full pathEric Wong, Jul 25, 2009
  7. Junio C HamanoJul 26, 2009
  8. t9143: do not fail if Compress::Zlib is missingEric Wong, Jul 26, 2009
  9. Mattias NisslerJul 25, 2009
  10. Eric WongJul 25, 2009
  11. Mattias NisslerJul 25, 2009
  12. git svn: make minimize URL more reliable over http(s)Eric Wong, Jul 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.