Closed jonasbjurel closed 8 years ago
It works just fine, +2 - this is extremely useful!! One minor comment: Maybe should the help text state that it's the change set number (2557 in https://gerrit.opnfv.org/gerrit/#/c/2557/ for example) that should be used for the -c option?
... will look a little more though, I see that I don't get the exact same commit ID in the repo - want to understand why. :)
I will hang on until you understand, and fix the help text according to the comment.
OK, got it now, and a small fix is needed to actually verify the input of the -c argument - right now it happily accepts anything and gets going so I was for sure not building what I thought!
I'd suggest using "git ls-remote" to verify the argument and throw an error if not found - or simply check the git return value when cloning the changeset in question?
So you tried to pull a non existing patch set, and it failed back to something else (master HEAD). Did I get it? I'll fix!
Yes, that's how it seems! I'd be happy to help out as well tomorrow, just say the word!
I'll try to fix, but sure could need a helping hand;-)
Hi! I've whipped up a standalone example of how I suggest it would work. Use "-c" to checkout a commit id, and "-b" to checkout a branch or a change. If the branch argument is ambiguous, all valid alternatives are listed. checkout.sh.txt
As we agreed I've incorporated this change into this pull request!
+2 Let's move:-)
Already +2
BR/Jonas
From: Stefan Berg [mailto:notifications@github.com] Sent: Friday, October 16, 2015 11:11 AM To: jonasbjurel/OPNFV-Playground OPNFV-Playground@noreply.github.com Cc: jonasbjurel jonasbjurel@hotmail.com Subject: Re: [OPNFV-Playground] DO NOT MERGE (#60)
As we agreed I've incorporated this change into this pull request!
— Reply to this email directly or view it on GitHub https://github.com/jonasbjurel/OPNFV-Playground/pull/60#issuecomment-148662167 .
NOTE VERIFIED Description: Patch for patch-set handling, not needing LF-passwd.
Signed-off-by: Jonas Bjurel jonasbjurel@hotmail.com