[PATCH] D80978: Add a git hook script that can be manually setup to run some checks on every push

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 15:29:52 PDT 2020


mehdi_amini marked 2 inline comments as done.
mehdi_amini added inline comments.


================
Comment at: llvm/utils/git/pre-push.py:137
+
+def program_exists(cmd):
+    if sys.platform == 'win32' and not cmd.endswith('.exe'):
----------------
mehdi_amini wrote:
> MaskRay wrote:
> > shutil.which
> Does it handle the `.exe` suffix addition here?
Seems like it would work, but requires 3.3, not sure if we should require this?




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80978/new/

https://reviews.llvm.org/D80978





More information about the llvm-commits mailing list