-
bahamat
jclulow: I have a fix for 14697, but gerrit tells me I don't have create permission.
-
bahamat
I'm not sure if my permissions got screwed up somehow, or if I got culled at some point.
-
pmooney
bahamat: what was the error? (and what ref were you trying to push?)
-
bahamat
pmooney: remote: You need 'Create' rights to create new references.
-
bahamat
-
danmcd
bahamat: I can push to gerrit on your behalf if you wish.
-
danmcd
(though getting perms is the better long-term solution.)
-
bahamat
It used to work.
-
danmcd
Is it because you're now @mnx.io instead of @joyent.com ? That should've smoothly migrated...
-
bahamat
If there was a policy change about who's allowed to push, I must have missed it.
-
bahamat
gerrit has my mnx address in my profile.
-
danmcd
Hmmph.
-
andyf
Pushing HEAD:refs/for/master ?
-
bahamat
remote: error: branch refs/heads/i_14967:
-
andyf
For a new review, you need to use refs/for/master as far as I know
-
pmooney
you're trying to push the branch name itself, instead of to the create-a-new-change-for-me ref
-
danmcd
You did do "git push you⊙cio:/illumos-gate HEAD:refs/for/master" ?
-
pmooney
yeah
-
bahamat
Oh...ok.
-
pmooney
HEAD assumes you have the branch in question checked out at the time
-
pmooney
it'll also require a Change-id in the commit message for gerrit's tracking purposes
-
bahamat
I always forget about that HEAD:refs/for/master
-
bahamat
I think I ask about that every damn time :-/
-
tsoome
alias gerrit='git push gerrit HEAD:refs/for/master' ;)
-
gitomat
[illumos-gate] 14236 signed math leads getelfshdr astray -- Patrick Mooney <pmooney⊙pc>
-
pmooney
*confetti*
-
richlowe
one of the great advantages of using gerrit properly, will be not being allowed to push to master by mistake
-
richlowe
which terrifies me
-
pmooney
yeah, I'll appreciate that safety
-
andyf
wrapper scripts with lots of checks ftw
-
pmooney
(but am grumpy about how it means Change-id garbage in the commit messages)
-
pmooney
andyf: doesn't prevent me from accidentlly doing `push cr master` instead of `push cr HEAD:refs/for/master`
-
pmooney
I'm also not wild about scripts that do automatic attribution, as some folks have gerrit-specific emails configured
-
andyf
I was not really suggesting scripts are better than automation there..
-
andyf
but I have hidden the refs/for/master thing in a git alias, so just `git pg` which means I never even remember it without looking
-
pmooney
I'm a git weirdo who does a lot of stuff by hand
-
pmooney
(like always fetch/merge instead of pull)
-
richlowe
I'm a git weirdo who doesn't trust magic near illumos repos
-
richlowe
and even then I've fucked it up at least twice
-
andyf
and then I borrowed jlevon's "push-to-gate" script which does the check things
-
nahamu
Is there a plan to put gerrit in charge of landing things?
-
richlowe
what do you mean by "plan"?
-
richlowe
there's like, 8 people going "Gosh, I wish I had time for that"
-
richlowe
is that a plan?
-
nahamu
Haha
-
nahamu
I was looking for a mailing list thread or IPD or something.
-
jclulow
There is not a concrete plan
-
jclulow
At some point we could just rip the band-aid off tbh
-
nahamu
As someone who rarely integrates anything, I was more curious and surprised rather than feeling like I have an "Important Opinion" (TM)
-
nahamu
I think I interpreted pmooney's "I'll appreciate that safety" as implying that there was a concrete plan.
-
nahamu
I'll go back to being quiet now. :)
-
richlowe
the safety is that when you do it, none of us can push to master anymore
-
richlowe
except jclulow
-
richlowe
and unfortunately probably me :(
-
jclulow
richlowe: I have a pattern for a sudo mode
-
jclulow
so you can have a switch to turn on/off for doing it
-
richlowe
does anyone know off the top of my head if I mark something __unused then use it, can I get gcc to tell me?
-
tsoome
I do not think so...
-
richlowe
doh
-
yuripv
-
gitomat
[illumos-gate] 14867 panic in smb_request_alloc / smb_oplock_ind_break during shutdown -- Gordon Ross <gordon.ross⊙tc>