Commit 15c6f254 authored by zhujiashun's avatar zhujiashun

fix_missing_brpc_version_in_release: add branch info to git env

parent 229c8fa2
#!/bin/bash
v=$(git rev-parse --short HEAD 2> /dev/null)
version=$(git rev-parse --short HEAD 2> /dev/null)
branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [ $? -eq 0 ]
then
echo $v
echo $version-$branch
else
cat $1/RELEASE_VERSION
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment