summaryrefslogtreecommitdiff
path: root/update
blob: 94de0925c64b32d69549ee94f6b8731b4b395caa (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" "${refname}\nsha1-old: ${sha_old}\nsha1-new: ${sha_new}" >> "${target_file}"