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

Re: git-svn bridge and line endings

From
Lucian Smith <lucianoelsmitho@gmail.com>
Date
Aug 23, 2016, 17:50 UTC
Message-ID
<CAHLmBr1Cd_JimZEsLUjG=+v4CgsXGGzkyFizZ1U5YSSMqjsEvw@mail.gmail.com>
In-Reply-To
<501dc45544c5582379df21a758d3be6c@quantumfyre.co.uk>

On Tue, Aug 23, 2016 at 10:36 AM, Julian Phillips <julian@quantumfyre.co.uk> wrote:

Show 17 quoted lines
> On 23/08/2016 17:14, Lucian Smith wrote:
>>
>> Thanks for the quick responses!
>>
>> My situation is that the git side is entirely whatever github.org is
>> running; presumably the latest stable version?  They provide a URL for
>> repositories hosted there that can be accessed by an SVN
>> client--somewhere on github is the 'git-svn bridge' (as I understand
>> it): something that receives SVN requests, translates them to
>> git-speak, and replies with what SVN expects.
>
>
> The ability to use a Subversion client is functionality provided by GitHub,
> and not native to git itself.  So unless someone for the appropriate GitHub
> team happens to read this thread I expect there isn't much we can do to
> help.  I don't know if they've even provided any real detail of how they
> implemented the bridge.

All right, that makes sense. And yeah, it was hard to find any information about the bridge, which is why I ended up here...

Show 24 quoted lines
>> There is indeed a .gitattributes file in the repository, but the SVN
>> client doesn't know what to do with it.  My hope was that something in
>> the bridge code, that translated SVN requests to git and back, could
>> take the SVN request, "Please give me this file; I'm on Windows" look
>> at the .gitattributes file in the repository, and hand out a file with
>> CR/LF's in it.  Conversely, when SVN tells git "Here is the new
>> version of the file to check in," the bridge could look at the file,
>> realize it had CR/LF's in it, look at the .gitattributes file to know
>> if it needed to be converted, and then convert it appropriately.
>>
>> I can imagine a full-blown bridge that could even translate the SVN
>> EOL propset back and forth appropriately, but I'm not sure if going
>> that far is necessary and/or helpful.
>>
>> I don't know if this is the right mailing list for that particular bit
>> of software, but it at least seemed like a good place to start.  Thank
>> you!
>
>
> Supported properties are listed here:
> https://help.github.com/articles/subversion-properties-supported-by-github/
>
> You'll need to ask GitHub to implement support for the svn:eol-style
> property I expect.

Thanks for finding that! That even has an 'ask a human' button, which I expect is my next step.

> Might be easier to just use Tortoise Git?
It may be!  But thanks for the responses anyway.
-Lucian
Previous: Julian PhillipsNext: Torsten Bögershausen
Message 7 of 12 in “Re: git-svn bridge and line endings”
  1. Lucian SmithAug 23, 2016
  2. Eric WongAug 23, 2016
  3. Alfred PerlsteinAug 23, 2016
  4. Eric WongAug 23, 2016
  5. Lucian SmithAug 23, 2016
  6. Julian PhillipsAug 23, 2016
  7. Lucian SmithAug 23, 2016
  8. Torsten BögershausenAug 23, 2016
  9. Torsten BögershausenAug 23, 2016
  10. Lucian SmithAug 23, 2016
  11. Junio C HamanoAug 23, 2016
  12. Lucian SmithAug 23, 2016

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.