--- subversion/libsvn_ra_svn/client.c.orig 2016-05-11 10:26:08.000000000 -0700 +++ subversion/libsvn_ra_svn/client.c 2016-05-11 10:26:11.000000000 -0700 @@ -56,6 +56,9 @@ #include "ra_svn.h" +#include <dispatch/dispatch.h> +#include <crt_externs.h> + #ifdef SVN_HAVE_SASL #define DO_AUTH svn_ra_svn__do_cyrus_auth #else @@ -390,6 +393,8 @@ apr_size_t len; apr_status_t status; int n; + static dispatch_once_t once; + static int this_is_xcode; /* Look up the tunnel specification in config. */ cfg = config ? svn_hash_gets(config, SVN_CONFIG_CATEGORY_CONFIG) : NULL; @@ -405,7 +410,11 @@ * versions have it too. If the user is using some other ssh * implementation that doesn't accept it, they can override it * in the [tunnels] section of the config. */ - val = "$SVN_SSH ssh -q"; + // <rdar://7252724> + dispatch_once(&once, ^{ + this_is_xcode = (strcmp(*_NSGetProgname(), "Xcode") == 0); + }); + val = this_is_xcode ? "$SVN_SSH ssh" : "$SVN_SSH ssh -q"; } if (!val || !*val)