Found the solution.
Edit the config file under (home/gerrit2/repositories/ics/.repo/repo/.git) and 
remove "/" from the origin url at the end (url = 
https://code.google.com/p/git-repo/). This bug is still present. After removing 
/ from after git-repo, my repo sync is working fine.

BR,
Parthiv Rawal.

From: Dave Borowitz [mailto:[email protected]]
Sent: Tuesday, October 18, 2011 12:24 PM
To: Parthiv Rawal
Cc: Project Hosting on Google Code
Subject: Re: Couldn't find host code.google.com in the .netrc file; using 
defaults

Are you following the instructions on https://code.google.com/hosting/settings 
for setting up your .netrc file? Can you show the line you added to your .netrc 
(without the password, of course)?
On Tue, Oct 18, 2011 at 11:45, bomjose 
<[email protected]<mailto:[email protected]>> wrote:
I am unable to do repo sync after repo init. I am trying to create a
mirror site for hosting google code for internal developers. While
doing repo init it is working fine but when i do repo sync i get error
"fatal: https://code.google.com/p/git-repo/.git/info/refs not found:
did you run git update-server-info on the server?
"

When i do GIT_CURL_VERBOSE=1 repo sync

I get following error.

* Couldn't find host code.google.com<http://code.google.com> in the .netrc 
file; using
defaults
* About to connect() to code.google.com<http://code.google.com> port 443 (#0)
*   Trying ... * Connected to code.google.com<http://code.google.com> () port 
443 (#0)
* found 142 certificates in /etc/ssl/certs/ca-certificates.crt
*        server certificate verification OK
*        common name: *.google.com<http://google.com> (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*       *        issuer: C=US,O=Google Inc,CN=Google Internet Authority
*        compression: NULL
*
*        MAC: SHA1
> GET /p/git-repo/.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.7.0.4<http://1.7.0.4>
Host: code.google.com<http://code.google.com>
Accept: */*
Pragma: no-cache

* The requested URL returned error: 404
* Closing connection #0

--
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" group.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To unsubscribe from this group, send email to 
[email protected]<mailto:google-code-hosting%[email protected]>.
For more options, visit this group at 
http://groups.google.com/group/google-code-hosting?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code-hosting?hl=en.

Reply via email to