FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[GUIDE] Understanding and using Gerrit [Easy+Explained]

484 posts
Thanks Meter: 1,501
 
Post Reply Email Thread
28th September 2014, 06:24 PM |#11  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,691
 
More
Hi @v_superuser,
Thanks for the guide. I reached upto "repo upload ." step but after that it returns upload failed.
Can you please help me out with this? I registered on aicp gerrit and also added publickey on gerrit.
Link to screenshot.
 
 
28th September 2014, 06:34 PM |#12  
v_superuser's Avatar
OP Senior Member
Flag Jammu
Thanks Meter: 1,501
 
Donate to Me
More
Says "Make sure you have correct rights" could be some rom specific stuff they have done for repo or seeing the rest, it could be something with your ssh keys.
You sure you're using same email id and username on git and gerrit?
The Following User Says Thank You to v_superuser For This Useful Post: [ View ] Gift v_superuser Ad-Free
28th September 2014, 08:04 PM |#13  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,691
 
More
Quote:
Originally Posted by v_superuser

Says "Make sure you have correct rights" could be some rom specific stuff they have done for repo or seeing the rest, it could be something with your ssh keys.
You sure you're using same email id and username on git and gerrit?

No, username is different. Email id is same.
I cannot change either of them now.
I was able to connect via ssh using Nikhil@gerrit.aicp-rom.org (Nikhil is username in gerrit)
nikhilmenghani is my username in github.
Any thoughts?
29th September 2014, 10:19 AM |#14  
v_superuser's Avatar
OP Senior Member
Flag Jammu
Thanks Meter: 1,501
 
Donate to Me
More
Quote:
Originally Posted by Nikhil

No, username is different. Email id is same.
I cannot change either of them now.
I was able to connect via ssh using Nikhil@gerrit.aicp-rom.org (Nikhil is username in gerrit)
nikhilmenghani is my username in github.
Any thoughts?

Use same git and gerrit username.
The Following User Says Thank You to v_superuser For This Useful Post: [ View ] Gift v_superuser Ad-Free
4th October 2014, 07:36 PM |#15  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,691
 
More
@v_superuser

I tried again and facing the same error

Code:
Upload project frameworks/native/ to remote branch kitkat:
  branch kitkat ( 1 commit, Sat Oct 4 22:55:31 2014 +0530):
         8dd591e7 DisplayDevice: Backwards compatibility with old EGL
to gerrit.aicp-rom.com (y/N)? y
The authenticity of host '[gerrit.aicp-rom.com]:29418 ([195.154.174.249]:29418)' can't be established.
RSA key fingerprint is 8c:9c:82:a7:4e:4f:8c:c6:c3:21:3d:c0:38:5d:25:58.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[gerrit.aicp-rom.com]:29418,[195.154.174.249]:29418' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Any thoughts?
I added public key to gerrit.aicp-rom.com from id_rsa.pub file too.
5th October 2014, 11:11 AM |#16  
v_superuser's Avatar
OP Senior Member
Flag Jammu
Thanks Meter: 1,501
 
Donate to Me
More
Quote:
Originally Posted by Nikhil

@v_superuser

I tried again and facing the same error

Code:
Upload project frameworks/native/ to remote branch kitkat:
  branch kitkat ( 1 commit, Sat Oct 4 22:55:31 2014 +0530):
         8dd591e7 DisplayDevice: Backwards compatibility with old EGL
to gerrit.aicp-rom.com (y/N)? y
The authenticity of host '[gerrit.aicp-rom.com]:29418 ([195.154.174.249]:29418)' can't be established.
RSA key fingerprint is 8c:9c:82:a7:4e:4f:8c:c6:c3:21:3d:c0:38:5d:25:58.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[gerrit.aicp-rom.com]:29418,[195.154.174.249]:29418' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Any thoughts?
I added public key to gerrit.aicp-rom.com from id_rsa.pub file too.

No idea. You registered on gerrit too, right?
The Following 2 Users Say Thank You to v_superuser For This Useful Post: [ View ] Gift v_superuser Ad-Free
13th October 2014, 10:36 PM |#17  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,691
 
More
Quote:
Originally Posted by v_superuser

No idea. You registered on gerrit too, right?

Yes I did.
Anyway, busy with other things so not trying much as of now.
Thanks for help!
4th April 2015, 06:21 PM |#18  
Junior Member
Thanks Meter: 8
 
More
Thank you OP for explainations. I see these termes (git, gerrit...) in lots of threats but never tried to understand. Now it's more clear in my head

Sent from my GT-I9305 using XDA Free mobile app
16th August 2015, 04:32 AM |#19  
Senior Member
Flag Brisbane
Thanks Meter: 1,529
 
More
ok so i am starting to come along in my cm port for my phone, now i want to be able to upload the changes it gerrit for review,,

its for the i9305 s3,, now i have all the i9305 device tree setup for cm12.1 and its working pretty much 80% bugless..

if i go repo start it says error: project device/samsung/i9305 not found do i have to repo init the project before i can repo start

and as the s3 is officially supported up until kitkat syncing the cm12.1 source does not sync the device repos needed, would i need to repo clone the cm11 device tree and start a new branch for lollipop
24th July 2017, 01:54 PM |#20  
Senior Member
Thanks Meter: 34
 
More
I want to upload a commit for a device kernel (for example Oneplus 3) to lineage . How to do it ? I have to download lineage source code ?
9th October 2017, 12:22 PM |#21  
nailyk's Avatar
Senior Member
Thanks Meter: 2,333
 
More
Quote:
Originally Posted by v_superuser

So firstly, I'll explain few terms that are important for you to learn before going towards a bit tricky side.

Many thanks for you guide.
However it is a bit outdated now and i think a few things can be reworked.
I came here with the idea to write one from scratch but your work is really good.
What about updating yours?
What about creating a new one with a bunch of copy/paste from yours?

Thanks in advance.
Post Reply Subscribe to Thread

Tags
easy, gerrit, guide, how to, steps

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes