A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Git Command: `git review -s` Returning Nothing

Prosper

From the Gerrit Tutorial, When this command git review -s is run it should show some messages.

Running this command from my terminal returns nothing and instead the command-prompt ($) re-appears

I already:

  • I already have git-review installed via: sudo apt-get install git-review
  • SSH setup for connecting to Gerrit
  • Cloned the Example Extension (this was the suggested experimental clone from the tutorial) and navigated into in using cd

Is this behavior normal?

Prosper

Still following the Gerrit Tutorial, i discovered the git-review package works fine.

But i’m still wondering why runninggit review -s returns nothing initially on my PC. I’d really appreciate any explanation.

I know it works fine because my Change-ID was automatically added to my practice patch to the Example extension on Gerrit.

kostajh

But i’m still wondering why running git review -s returns nothing initially on my PC. I’d really appreciate any explanation.

I imagine at some point in the history of the git-review software, -s would output text. It hasn’t for me. One of us should update the tutorial :slight_smile:

You can always add --verbose to git review commands (git review -s --verbose) to get some more information on what’s happening behind the scenes.

Prosper

I’m not on my PC now, plus you have the information.

You’d be in a better position to update the documentation.

kostajh

OK, done in https://www.mediawiki.org/w/index.php?title=Gerrit/Tutorial&oldid=3101437

Hope that helps!