aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2022-02-10 00:59:52 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2022-02-10 00:59:52 +0100
commit66d6c0e68fee99e8a9ce2831fa6590153828a01e (patch)
tree844d848967a116cdd28678c2b2edee0ec43c716f
parent2ab9ee520f928e95770e26876a1995f1a16b3b46 (diff)
downloadblogc-66d6c0e68fee99e8a9ce2831fa6590153828a01e.tar.gz
blogc-66d6c0e68fee99e8a9ce2831fa6590153828a01e.tar.bz2
blogc-66d6c0e68fee99e8a9ce2831fa6590153828a01e.zip
tests: git-receiver: use branch name instead of HEAD symbolic ref
-rwxr-xr-xtests/blogc-git-receiver/check_pre_receive.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/blogc-git-receiver/check_pre_receive.sh.in b/tests/blogc-git-receiver/check_pre_receive.sh.in
index 41daaf3..9ac12df 100755
--- a/tests/blogc-git-receiver/check_pre_receive.sh.in
+++ b/tests/blogc-git-receiver/check_pre_receive.sh.in
@@ -54,7 +54,7 @@ git fast-import < "${TEMP}/tmp.txt" &> /dev/null
cat > "${TEMP}/payload.txt" <<EOF
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/foo
-0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master
+0000000000000000000000000000000000000000 $(git rev-parse master) refs/heads/master
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/bar
EOF
@@ -89,7 +89,7 @@ git fast-import < "${TEMP}/tmp.txt" &> /dev/null
cat > "${TEMP}/payload.txt" <<EOF
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/foo
-0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master
+0000000000000000000000000000000000000000 $(git rev-parse master) refs/heads/master
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/bar
EOF
@@ -157,7 +157,7 @@ git fast-import < "${TEMP}/tmp.txt" &> /dev/null
cat > "${TEMP}/payload.txt" <<EOF
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/foo
-0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master
+0000000000000000000000000000000000000000 $(git rev-parse master) refs/heads/master
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/bar
EOF
@@ -229,7 +229,7 @@ git fast-import < "${TEMP}/tmp.txt" &> /dev/null
cat > "${TEMP}/payload.txt" <<EOF
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/foo
-0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master
+0000000000000000000000000000000000000000 $(git rev-parse master) refs/heads/master
0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 refs/heads/bar
EOF
@@ -294,7 +294,7 @@ EOF
git fast-import < "${TEMP}/tmp.txt" &> /dev/null
cat > "${TEMP}/payload.txt" <<EOF
-0000000000000000000000000000000000000000 $(git rev-parse HEAD) refs/heads/master
+0000000000000000000000000000000000000000 $(git rev-parse master) refs/heads/master
EOF
SHELL="${SELF}" BLOGC_GIT_RECEIVER_BASE_DIR="${TEMP}" PATH="@abs_top_builddir@:${PATH}" GIT_DIR=. ${TESTS_ENVIRONMENT} ./hooks/pre-receive < "${TEMP}/payload.txt" 2>&1 | tee "${TEMP}/output.txt" || true