Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106524
b: refs/heads/master
c: 56b2f07
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Siewior authored and Sam Ravnborg committed Jul 25, 2008
1 parent 20e2f89 commit 2e4a77e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12d2b8f951063076c7e0acdff7ae1fecd54920a0
refs/heads/master: 56b2f0706d82535fd8d85503f2dcc0be40c8e55d
4 changes: 3 additions & 1 deletion trunk/scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ cd "${1:-.}" || usage
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
# Do we have an untagged version?
if git name-rev --tags HEAD | grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
if tag=`git describe 2>/dev/null`; then
echo $tag | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
fi
fi

# Are there uncommitted changes?
Expand Down

0 comments on commit 2e4a77e

Please sign in to comment.