Hi All,
i am able to clone repo in Windows but not able to clone repo in unix machine .Below error is thrown.
Atlassian Stash. v2.0.0
Error:
====
git clone http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git /tmp/CM
Cloning into '/tmp/CM'...
Password for 'http://cmadmblr@10.159.236.181:7990':
fatal: http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git/info/refs not valid: is this a git repository?
Hi,
It looks like you are affected by https://jira.atlassian.com/browse/STASH-2966?focusedCommentId=449385&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-449385
Upgrading to at least Stash 2.0.3 should fix this problem for you.
Hope this helps.
Cheers,
Stefan
Hi,
Are you by any chance using CentOS on the client? Could you please provide the version of git and curl used on that machine (git --version, curl --version)?
Cheers,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
clone is faling for below versions
git --version
git version 1.8.1.2
curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 l ibidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
but it is working for below version.
git version 1.7.1 curl 7.19.7
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jayanth,
Stash should work equally well on both Windows and Unix (I should know, I'm running Ubuntu). What version of git do you have?
git --version
Are you going through a proxy?
If you run clone with tracing enabled you might be able to see some more information:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone $URL
If you paste the results here make sure you remove any line containing 'Authorization: Basic'.
I hope this helps.
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is the tarce, its Red Hat Enterprise Linux Server release 5.5 machine
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git
trace: built-in: git 'clone' 'http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git'
Cloning into 'cmtest'...
trace: run_command: 'git-remote-http' 'origin' 'http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git'
* Couldn't find host 10.159.236.181 in the .netrc file, using defaults
* About to connect() to 10.159.236.181 port 7990
* Trying 10.159.236.181... * connected
* Connected to 10.159.236.181 (10.159.236.181) port 7990
> GET /scm/IMSCM/cmtest.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.8.1.2
Host: 10.159.236.181:7990
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
< X-AREQUESTID: 713x1766x1
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< WWW-Authenticate: Basic realm="Atlassian Stash"
< Content-Type: text/plain
< Transfer-Encoding: chunked
< Content-Encoding: gzip
< Vary: Accept-Encoding
< Date: Mon, 25 Feb 2013 06:23:56 GMT
* Ignoring the response-body
* Connection #0 to host 10.159.236.181 left intact
* Issue another request to this URL: 'http://cmadmblr@10.159.236.181:7990/scm/IMSCM/cmtest.git/info/refs?service=git-upload-pack'
* Couldn't find host 10.159.236.181 in the .netrc file, using defaults
* Re-using existing connection! (#0) with host 10.159.236.181
* Connected to 10.159.236.181 (10.159.236.181) port 7990
* Server auth using Basic with user 'cmadmblr'
> GET /scm/IMSCM/cmtest.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.8.1.2
Host: 10.159.236.181:7990
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.