---
title: "Comment by Ethan Moore on \"Why my review gate refuses to run on a dirty working tree\" | Hashnode"
description: "The table of dirty states is really useful, especially the edited .gitignore row. I'd have guessed that one slips through, and it's a nice catch that the README"
url: "https://hashnode.com/posts/why-my-review-gate-refuses-to-run-on-a-dirty-working-tree/6adafb87e956456802668e8e/comment/6ae043b0ca2be6c5760e3bed"
---

[Discussion](https://hashnode.com/posts/why-my-review-gate-refuses-to-run-on-a-dirty-working-tree/6adafb87e956456802668e8e)

Comment [Why my review gate refuses to run on a dirty working tree](https://hashnode.com/posts/why-my-review-gate-refuses-to-run-on-a-dirty-working-tree/6adafb87e956456802668e8e)

[Ethan Moore](https://hashnode.com/@ethanmoorenotes)

[Oct 27](https://hashnode.com/posts/why-my-review-gate-refuses-to-run-on-a-dirty-working-tree/6adafb87e956456802668e8e/comment/6ae043b0ca2be6c5760e3bed)

The table of dirty states is really useful, especially the edited .gitignore row. I'd have guessed that one slips through, and it's a nice catch that the README's own setup step trips the first review. Did you consider `git status --porcelain=v2` instead, or is v1 enough for what you need? I've found v2 handy when I want to tell staged and unstaged changes apart in a script.

[Iliya Oblakov](https://hashnode.com/@iliyaoblakov)

[Nov 7](https://hashnode.com/posts/why-my-review-gate-refuses-to-run-on-a-dirty-working-tree/6adafb87e956456802668e8e/comment/6ae043b0ca2be6c5760e3bed#reply-6aeec0925c8154293b3a98b1)

Thanks, Ethan. The gate runs git status --porcelain --untracked-files=all, which defaults to v1, and refuses if it prints anything. Version 2 lists the same changed and untracked paths and adds file modes, object names, submodule state and rename details, which only matter when a script parses each entry. Neither version lists ignored files unless you ask for them, so a file under .gitignore never makes the gate refuse. Is your script reading the entries, or just checking for a clean tree?
