swh:1:snp:7a00303c98f65d2a9221cf55c3a23ffca44b6300
Raw File
Tip revision: 7b972a49426e4ddddcc2a4c9ad8ebc3f3dc61906 authored by Pierre-Yves Strub on 14 October 2019, 12:20:46 UTC
Merge branch '1.0' into deploy-better-int-red
Tip revision: 7b972a4
get-commit
#! /bin/bash

# --------------------------------------------------------------------
hash=$(head -n 1 <(git rev-parse HEAD 2>/dev/null))

if [[ "${hash}" =~ ^[a-fA-F0-9]{40}$ ]]; then
  echo -n "${hash}"
fi
back to top