Opened 14 years ago

Closed 10 years ago

#28329 closed defect (worksforme)

git svn doesn't use keychain

Reported by: jpschewe@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: nikolaus@…
Port: git

Description

I have subversion installed from macports and it works nicely with keychain. ~/.subversion/auth/svn.simple contains only usernames now and no passwords. However when I use "git svn" to do anything I'm prompted for a password. Why doesn't this work? I even tried deleting the hash file to allow git svn to recreate it hoping that it would save my password there so I didn't have to type it again, but still I'm prompted for a password. This gets really annoying when pushing multiple commits.

My svn repository is accessible via https and uses basic authentication, no ssh involved.

git --version

git version 1.7.4

git svn --version

git-svn version 1.7.4 (svn 1.6.15)

svn --version

svn, version 1.6.15 (r1038135)

compiled Jan 23 2011, 15:46:43

Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.apache.org/ This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

  • ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
    • handles 'http' scheme
  • handles 'https' scheme
  • ra_svn : Module for accessing a repository using the svn network protocol.
    • with Cyrus SASL authentication
    • handles 'svn' scheme
  • ra_local : Module for accessing a repository on local disk.
    • handles 'file' scheme
  • ra_serf : Module for accessing a repository via WebDAV protocol using serf.
    • handles 'http' scheme
    • handles 'https' scheme

sudo port selfupdate -v

Password: ---> Updating the ports tree ---> Updating MacPorts base sources using rsync MacPorts base version 1.9.2 installed, MacPorts base version 1.9.2 downloaded. ---> MacPorts base is already the latest version

Mac OS 10.6.6

Change History (12)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to maccheck@…
Port: git-core added

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 14 years ago by maccheck@…

This seems to be an issue with the git <-> svn bridge. The same problem arises if you use a non-MacPorts git executable. Tested it with the git executable coming with Xcode 4 GM.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from maccheck@… to macports-tickets@…

-> nomaintainer

comment:4 Changed 13 years ago by nikolaus@…

Cc: nikolaus@… added

Cc Me!

comment:5 Changed 13 years ago by nikolaus@…

Cc: nikolaus@… removed

Cc Me!

comment:6 Changed 13 years ago by nikolaus@…

Cc: nikolaus@… added

Cc Me!

comment:7 Changed 13 years ago by nikolaus@…

Does anyone have an idea how we could go about fixing this? It is really annoying...

comment:8 Changed 13 years ago by nikolaus@…

I just confirmed that svn passwords saved in plaintext work with git-svn also. This is obviously not a good workaround...

(P.S.: sorry for the cc spam, I missclicked)

comment:9 Changed 13 years ago by nikolaus@…

A bit more digging revealed that there is some discussion about this upstream:

http://git.661346.n2.nabble.com/git-svn-won-t-remember-pem-password-tt7295962.html

comment:10 Changed 13 years ago by ci42

Owner: changed from macports-tickets@… to ciserlohn@…

comment:11 Changed 10 years ago by jmroot (Joshua Root)

Port: git added; git-core removed

comment:12 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: worksforme
Status: newclosed

This is no longer an issue. I use git svn all the time (Git 2.1.2) and am never prompted for a password. Must have gotten implemented sometime in the last 3 years.

Note: See TracTickets for help on using tickets.