# Check out open gerrit topics

**URL:** https://discourse.itk.org/t/check-out-open-gerrit-topics/1597
**Category:** Community
**Tags:** gerrit, git
**Created:** [February 13, 2019, 3:21am UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597 "2019-02-13T03:21:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [February 13, 2019, 3:21am UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597/1 "2019-02-13T03:21:56Z")

</div>

Folks,  
is there a way to checkout **open gerrit topics** that were not transitioned to GitHub?

I’d like to finish [work that I left behind a while ago](https://review.source.kitware.com/%23/c/22134/7/).

Since gerrit was put to read-only mode, searches by keywords cannot be done 😭 . The _Download_ menu previously displayed to checkout a given `Change-Id` is no longer available, and I did not succeed in guessing the appropriate gerrit repository URL for checkout, e.g.

```auto
git fetch https://gerrit.googlesource.com/gerrit refs/changes/03/64403/2 && \
git checkout FETCH_HEAD

```

All references to gerrit were removed from the ITK wiki to avoid any confusion.

Thanks,  
JON HAITZ

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [February 13, 2019, 1:51pm UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597/2 "2019-02-13T13:51:16Z")

</div>

Hi Jon Haitz,

> [@jhlegarreta](#):
>
> I’d like to finish [work that I left behind a while ago](https://review.source.kitware.com/%23/c/22134/7/).

Thank you for taking this up! 👏

To continue work on the patch:

First, download the patch with the _Download_ link in the upper right of the page.

![image](https://discourse.itk.org/uploads/default/original/1X/a6e2beacef692acb7610e25a619639f90537df55.png)

This points to the file _197a55a11b4ebf810b6e66c475d735f115362897.diff_ in this case.

Then, checkout a new branch in your local ITK repository from the parent commit (it can be found on the left):

![image](https://discourse.itk.org/uploads/default/original/1X/7f40483ee76e127945c02d2374e424613b066b7d.png)

```auto
cd ~/src/ITK
git checkout -b ImproveThresholdingFiltersCoverage ca0c11ccad9aa0c5c3211674e328c4ff52f54b38

```

and apply the patch:

```auto
git am ~/Downloads/197a55a11b4ebf810b6e66c475d735f115362897.diff

```

And proceed with the [standard contribution process](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CONTRIBUTING.md), i.e.

```auto
git commit --amend
git review-push
[...]

```

HTH,  
Matt

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [February 13, 2019, 5:23pm UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597/3 "2019-02-13T17:23:34Z")

</div>

Thanks for the quick reply @matt.mccormick.

> [@matt.mccormick](#):
>
> First, download the patch with the _Download_ link in the upper right of the page.

Unfortunately, the download button does not trigger any file download on my side 😔 .

I’ve checked in two different browsers.

Note that since gerrit was freezed, I cannot log in, which I assume is the expected behavior.

Am I missing something?

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [February 13, 2019, 5:42pm UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597/4 "2019-02-13T17:42:54Z")

</div>

With the static archive, site login is no longer, but it is not required.

Try _Right click -\> Save link as…_ or _Right click -\> Copy link address…_ and download with curl, e.g.:

```auto
$ curl -O https://review.source.kitware.com/changes/22134/revisions/197a55a11b4ebf810b6e66c475d735f115362897.diff

```

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [February 14, 2019, 4:04am UTC](https://discourse.itk.org/t/check-out-open-gerrit-topics/1597/5 "2019-02-14T04:04:31Z")

</div>

Awesome, it works 🎉

For some weird reason, Firefox was not allowing me to download the `.diff` file. I was able to do it using Chrome.

But thanks for providing the link, and for providing an explanation that can be helpful for other fellows that may want to pick up some of the unfinished work form gerrit 📖.

The additional git diff patch application steps were also appreciated.

Cheers,  
JON HAITZ
