Skip to content

Commit

Permalink
Update Gerrit.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf authored Aug 2, 2023
1 parent d661de1 commit a47432f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cheat-sheet/CICD/Gerrit.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
### Tricks
## Tricks

#### Easily Checkout Changes
### Easily Checkout Changes

Changes correspond to branches with the naming schema "gerrit_<change
number>". So you can
Changes correspond to branches with the naming schema `gerrit_<change
number>`. So you can

git checkout gerrit_12345

#### Delete Changes
### Delete Changes

Sometime you want to delete a change to make it invisible for everyone
(for example when you did commit an unencrypted secret...). This is
Expand All @@ -19,26 +19,26 @@ and issue a delete with:

update changes set status='d' where change_id='<change id>';

#### Search for Commit Text
### Search for Commit Text

It is a bit non-obvious to search for text in commit messages. When just
searching "message:" no results are given. This is because "status:"
auto-defaults to a useless values. So you need to specify "status:" with
searching `message:` no results are given. This is because `status:`
auto-defaults to a useless values. So you need to specify `status:` with
a useful value:

status:merged message:critical bugfix
status:open message:Patch

### Solving Errors
## Solving Errors

#### Bad pack header
### Bad pack header

This happens from time to time if you do not garbage collect and hit the
open file limit. To solve: trigger a garbage collection

ssh <gerrit host>:29418 gerrit gc <project name>

#### Unpack failed: error Missing unknown xxx
### Unpack failed: error Missing unknown xxx

Solution here is to abandon the problematic changes. This cannot be done
via the GUI and only by admins
Expand Down

0 comments on commit a47432f

Please sign in to comment.