• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Stricter check for creation events (snippets, f2fe528)

Created 7/19/2007, updated 3/5/2024
  • snippets

Instead of using a relatively loose regular expression to detect creation
events use a strict fixed-length check for a string consisting of exactly 40
zeros.

Signed-off-by: Greg Hurrell <greg@hurrell.net>\

← Ruby rewrite of post-receive hook (snippets, d54a73f)
Correct shebang line (snippets, f08c4fa) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).