2013-11-15 226 views
1

我想通过CYGWIN访问一个源代码存储库,在我通过Windows资源管理器成功签出文件后,但它一直给我一个'CYGWIN中找不到主机'的错误。SVN命令不能在Cygwin上工作

试图在CYGWIN中执行结账的svn co命令。

在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) 
+0

http改为htp用于转义url发布限制! :D – grnair89

+0

我已经格式化了你的输出并重新引入了缺失的't'。 –

+0

我正在寻找解决方案来解答这个问题...你有没有得到它的任何地方? –

回答

0

据我所知,在Cygwin工具将不会使用你已经设置了TortoiseSVN的代理设置。

尝试运行命令前设置你的壳代理:

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

如果这样的作品,您可以将export ...行添加到您的.bash_profile

+0

不确定这是否工作?..不反正我吗? –