Skip to content

Instantly share code, notes, and snippets.



Created Jul 23, 2012
What would you like to do?
Fix git-svn on Mountain Lion
#! /bin/bash
# Fix git-svn on Mountain Lion
# Author: Felipe Cypriano <≥
# Based on Vitor Quinn blog post:
# If you do not have xcode-select pointing to the right Xcode installation
# put the right path in the line bellow and uncoment it
#sudo xcode-select -switch /Applications/
xcode_svn_path=`xcode-select --print-path`/Library/Perl/5.12/darwin-thread-multi-2level/SVN
paths_to_link=("/System/Library/Perl/Extras/5.12/SVN" "/System/Library/Perl/Extras/5.12/auto/SVN")
for path in "${paths_to_link[@]}"
sudo rm $path
echo "linking $xcode_svn_path to $path"
sudo ln -s $xcode_svn_path $path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment