Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
15c6f254
Commit
15c6f254
authored
Dec 05, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix_missing_brpc_version_in_release: add branch info to git env
parent
229c8fa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
RELEASE_VERSION
RELEASE_VERSION
+1
-1
get_brpc_version.sh
tools/get_brpc_version.sh
+3
-2
No files found.
RELEASE_VERSION
View file @
15c6f254
30ff183a
0.9.7
tools/get_brpc_version.sh
View file @
15c6f254
#!/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
$v
ersion
-
$branch
else
cat
$1
/RELEASE_VERSION
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment