github.com/MetalBlockchain/metalgo@v1.11.9/.github/workflows/check-clean-branch.sh (about)

     1  #!/bin/bash
     2  # Exits if any uncommitted changes are found.
     3  
     4  set -o errexit
     5  set -o nounset
     6  set -o pipefail
     7  
     8  git update-index --really-refresh >> /dev/null
     9  git diff-index --quiet HEAD