projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc79663
)
[jenkins] - use a new method to determine the branch name by ignoring the pr ref_spec...
author
Memphiz
<memphis@machzwo.de>
Mon, 5 Aug 2013 19:34:25 +0000
(21:34 +0200)
committer
Memphiz
<memphis@machzwo.de>
Mon, 5 Aug 2013 19:34:25 +0000
(21:34 +0200)
tools/buildsteps/defaultenv
patch
|
blob
|
history
diff --git
a/tools/buildsteps/defaultenv
b/tools/buildsteps/defaultenv
index
93d3c13
..
52d22ee
100644
(file)
--- a/
tools/buildsteps/defaultenv
+++ b/
tools/buildsteps/defaultenv
@@
-119,7
+119,7
@@
function getBuildRevDateStr ()
if [ "$?" == "0" ]
then
#fetch the first branch containing head
- revStr=$revStr"-"`git
branch -r --contains HEAD | sed "/origin\/pr\//d"
| head -n1 | awk '{gsub(".*/","");print $1}'`
+ revStr=$revStr"-"`git
name-rev --ref=refs/heads/* --name-only HEAD
| head -n1 | awk '{gsub(".*/","");print $1}'`
if [ "$?" == "0" ]
then
echo $revStr