On OSX using sourcetree / git-svn getting “Can't locate SVN/Core.pm in @INC ”

前端 未结 10 2294
离开以前
离开以前 2021-02-07 06:14

I\'m using OSX and want get a svn repo into a local git repo using sourcetree.

When I add a bookmark using sourcetree using SVN URL, thus sourcetree<

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 07:11

    The solution for me was to delete the password entry in the OSX key ring app, and have git svn re-create it. My key entry has been created earlier (by svn I suppose), and it seems that git cannot use this key entry (nor fix it nor add a second one).

    The long story: I noticed that when unsing "system git" in SourceTree, there seemed to be a problem storing the credentials. When I entered the same git command (that SourceTree is issuing) on the command-line, git kept prompting me for my password each time.

    Then I found https://stackoverflow.com/a/39800112/580672

    If you are interested, my setup was:

    • No Xcode, only Command-Line tools (so I adapted the paths as mentioned in a post above ( https://paulschreiber.com/blog/2015/11/09/fixing-git-svn-on-os-x-el-capitan/comment-page-1/#comment-437843 )
    • Homebrew has svn and perl installed

    I had tried with no success:

    • "embedded git" (yields the @INC error)
    • "system git" (different error: "Username: Use of uninitialized value $ret in chomp at /usr/local/Cellar/git/2.21.0/share/perl5/Git.pm line 596.")
    • put usr/bin in front of my PATH as suggested above
    • force-uninstalled perl in homebrew

    All without success. The solution was system git and the key entry, as stated above.

提交回复
热议问题