diff options
-rw-r--r-- | update | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,8 +1,10 @@ #!/bin/bash - - -date > /tmp/git_update_test - refname="$1" -printf "refname: %s" "${refname}" >> /tmp/git_update_test +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}" |