blob: 08d52f7f1af0e7193e7bd7400dff902a81c6e974 [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=%ci ${COMMIT_ID}