projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Let the application disable the link cancel dialog
[fw/altos]
/
altosdroid
/
buildinfo.sh
diff --git
a/altosdroid/buildinfo.sh
b/altosdroid/buildinfo.sh
index e1b650f8f2e04afc2c294075473f0704b4ead9d4..ac97b7bd83b804fe18cfed7eecb8d106afb2307f 100755
(executable)
--- a/
altosdroid/buildinfo.sh
+++ b/
altosdroid/buildinfo.sh
@@
-22,9
+22,9
@@
buildtz=$(date "+%z")
describe=$(git describe --match "$version" --long --always 2>/dev/null || echo '')
if [ -n "$describe" ]; then
describe=$(git describe --match "$version" --long --always 2>/dev/null || echo '')
if [ -n "$describe" ]; then
- branch=$(git
status -s -b | sed -ne '1s/^## \(.*\)\.\.\..*$/\1
/p')
+ branch=$(git
branch | sed -ne 's/^\* /
/p')
commitdetails=$(echo $describe | sed -e "s/^$version-//")
commitdetails=$(echo $describe | sed -e "s/^$version-//")
- commitnum=$(echo $commitdetails | cut -d- -f1)
+ commitnum=$(echo $commitdetails | cut -
s -
d- -f1)
commithash=$(echo $commitdetails | cut -d- -f2)
fi
commithash=$(echo $commitdetails | cut -d- -f2)
fi