blob: 5b7114589d1d6f988d78ac2b06320a1922c14b79 [file] [log] [blame]
#!/bin/bash
set -e
if [[ -z "${1}" || -z "${2}" ]]; then
echo "usage: commitDate sourceLocation commitId" >&2
exit 1
fi
SOURCE_LOCATION=${1}
COMMIT_ID=${2}
cd ${SOURCE_LOCATION}
git show -s --format=%ct ${COMMIT_ID}