projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Invoke bash directly to detect revision (allows to avoid using some minimal shell...
[synfig.git]
/
synfig-studio
/
trunk
/
build_tools
/
autorevision.sh
diff --git
a/synfig-studio/trunk/build_tools/autorevision.sh
b/synfig-studio/trunk/build_tools/autorevision.sh
index
e6516b1
..
f60f4ef
100644
(file)
--- a/
synfig-studio/trunk/build_tools/autorevision.sh
+++ b/
synfig-studio/trunk/build_tools/autorevision.sh
@@
-16,7
+16,7
@@
get_git_id(){
export SCM=git
export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 2 -d ' '`
get_git_id(){
export SCM=git
export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 2 -d ' '`
- export BRANCH=`cd "$1"; git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)//`
+ export BRANCH=`cd "$1"; git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)//
| tr '\n' ' ' | tr -s ' ' | sed s/^' '//
`
if ( echo $BRANCH | egrep origin/master > /dev/null ); then
#give a priority to master branch
BRANCH='master'
if ( echo $BRANCH | egrep origin/master > /dev/null ); then
#give a priority to master branch
BRANCH='master'