github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/githooks/post-checkout (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  if [ "$1" != "$2" ]; then # previous ref != new ref.
     5    exec git submodule update --init --recursive
     6  fi