合并请求未接收:
我已经在目录(/ var / opt / gitlab / git-data / repositories / root // custom_hooks /)中创建了以下更新服务器端挂钩。推送提交后,我试图将提交从源合并到master分支,但这给了我图像中共享的问题。
我的自定义更新脚本如下:
#! /bin/bash
echo "Checking whether git commit has following release pattern or not !!"
ref_name=$1
ref=$3
msg=$(git log --pretty=%B -n 1 $ref | sed '$d')
result=$(git log --pretty=%B -n 1 $ref | sed '$d' | grep releaseTag=v.*)
echo "New ref received, ref is: $ref to ref name: $ref_name and commit msg
is: $msg"
if [[ -z "${result}" ]]
then
echo "######## Requested git commit msg didn't follow the pattern, hence r
ejecting, follow this pattern releaseTag=v1.11 #########"
exit 1
fi
echo "######## Commit msg followed the pattern, hence accepting ########"
请告诉我如何解决此问题。