1

我正在尝试通过 CYGWIN 访问源代码存储库,就在我通过 Windows 资源管理器成功签出文件之后,但它一直给我一个“在 CYGWIN 中找不到主机错误”。

尝试svn co在 CYGWIN 中执行结帐命令。

在 SVNTortoise 网络设置中,我已经包含了我的代理服务器和用户名/密码。

请让我知道我在这里缺少什么。以下是我这样做时 cygwin bash 的确切场景:

bash-3.2$ cd
bash-3.2$ svn --version                                                                                                                                                                                   
svn, version 1.6.3 (r38063)
   compiled Jul  9 2009, 10:30:30

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.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

bash-3.2$ svn co http://repositoryname/checkoutfile

svn: OPTIONS of 'http://repositoryname/checkoutfile': Could not resolve hostname `repositoryname': Unknown host (htp://repositoryname.com)
4

1 回答 1

0

据我所知,Cygwin 工具不会使用您为 TortoiseSVN 设置的代理设置。

在运行命令之前尝试在 shell 中设置代理:

export http_proxy="http://<user>:<password>@<proxy>:<port>"
svn ...

如果可行,您可以将该export ...行添加到您的.bash_profile.

于 2013-11-15T10:48:04.837 回答