Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ git clone asterisk:{repo}

 

Pushing to Gerrit for Code Review

...

  1. Install git-review:

    Code Block
    $ pip install git-review
  2. To submit a change to master:

    Code Block
    $ git review
  3. To submit a change for a particular branch:

    Code Block
    $ git review {branchname}
  4. To submit a change, including the ASTERISK issue:

    Code Block
    $ git review -t ASTERISK-12345

Use git push

 

Pushing to Gerrit for code review can always be done using standard git commands. This is done by pushing to the refs/for/[branch]. Generally, this will be master, unless pushing to a particular mainline Asterisk branch.

 

Code Block
$ git push asterisk:{repo} HEAD:refs/for/master

 

 

Updating a Review

  1. Reviews are automatically updated so long as commits contain the same Change ID. If your review has any findings, rebase the commits as appropriate, making sure the Change ID is preserved:

    Code Block
    $ git rebase -i HEAD~{num}
  2. Re-push the changes:

    Code Block
    $ git review

    or:

    Code Block
    $ git push asterisk:{repo} HEAD:refs/for/master

...