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

git svn dcommit doesn't support --username option for file:/// urls

From
TRTim Ringenbach <tim.ringenbach@gmail.com>
Date
Feb 12, 2016, 23:14 UTC
Message-ID
<CAGZMbfc5Oi=EOYbCbZWfM1T65AZwCEbsso+QTkAe1sa4hRC61A@mail.gmail.com>
Hi,

'git svn dcommit' doesn't seem to honor the --username argument when my svn repository url is a file:/// url. It doesn't complain either, it just seems to silently ignore the option. My dcommits show up as the user I'm logged in as. The only way I found to change that is to 'sudo' to some other user.

The actual 'svn' command does support --username with 'svn commit'.

What I'm actually up to, is trying to make a svn to git mirror bi-directional. Right now, I have a cron job that 'git svn fetch's and 'git push origin's with some configs setup so that it does what I want.

I was experimenting with writing some scripting to go in the other direction, and my first step was seeing if I could commit to svn as any user. It seems like I should be able to and that git-svn just doesn't support it.

(BTW, I'm aware there's a lot of pitfalls I'll have to work around, and that I'll need to be very careful with verifying that the most recent 'git-svn-id:' matches the branch and revision I expect to be committing to, and that bad things will happen if I mess it up.)

Thanks, Tim

Next: Eric Wong
Message 1 of 5 in “git svn dcommit doesn't support --username option for file:/// urls”
  1. Tim RingenbachFeb 12, 2016
  2. Eric WongFeb 15, 2016
  3. Tim RingenbachFeb 15, 2016
  4. Eric WongFeb 15, 2016
  5. Tim RingenbachFeb 15, 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.