Skip to content

Commit 85e3800

Browse files
tweaked the rev number calculation as it was a bit off. We want revs per branch.
1 parent dadce59 commit 85e3800

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/git-ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GIT_VER_DIR=$(get_script_dir)
1717
command="bash $(get_script_dir)/git-ver-$1"
1818

1919
if [[ -f "$GIT_VER_DIR/git-ver-$1" ]]; then
20-
( export GIT_VER_VERSION;bash -c $command ${*:2} )
20+
( export GIT_VER_VERSION;$command ${*:2} )
2121
else
2222
echo >&2 "Unknown command: $1.";
2323
exit 1;

src/git-ver-get-suffix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ get_script_dir () {
1515
get_suffix() {
1616
GIT_VER_DIR=$(get_script_dir)
1717
# local system defaults. These are overridden by appveyor
18-
local rev="$($GIT_VER_DIR/git-ver get-rev -a)"
18+
local rev="$($GIT_VER_DIR/git-ver get-rev)"
1919
local suffix="$(git rev-parse --symbolic --tags | sort -i | tail -1 | sed -e 's/\(.*\)\([-]\)\(.*\)/\3/').$rev"
2020
local branch_name=$(git rev-parse --abbrev-ref HEAD)
2121
if [[ "$APPVEYOR" == true ]]; then

0 commit comments

Comments
 (0)