summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update12
1 files changed, 7 insertions, 5 deletions
diff --git a/update b/update
index 4fbc8c5..94de092 100644
--- a/update
+++ b/update
@@ -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}"