summaryrefslogtreecommitdiff
path: root/update
blob: 65fe5d3a53977b8b53a10fb4096744dc694faa12 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

refname="$1"
sha_old="$2"
sha_new="$3"
base_refname=$(base64 "${refname}")
target_file="/tmp/git_update_${base_refname}_test"

date > "${target_file}"
printf "refname: %s\nsha1-old: %s\nsha1-new: %s" "${refname}" "${sha_old}" "${sha_new}" >> "${target_file}"