Not able to clone repo in unix box

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?

3 answers

1 accepted

0 vote

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 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

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




0 vote

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

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,838 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you