Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Only use version for specific tags.
Browse files Browse the repository at this point in the history
Since we are interating on snap, we don't want users to think
0.14.0-<sha> is semantic version of 0.14.0. This ensure the build script
only label version for specific git tags and use branch-<sha> to
indicate development versions.
  • Loading branch information
nanliu committed Jun 7, 2016
1 parent 506318e commit 998f694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#See the License for the specific language governing permissions and
#limitations under the License.

GITVERSION=`git describe --always`
GITVERSION=`git describe --always --exact-match 2> /dev/null || echo "$(git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(git log --pretty=format:"%h" -1)"`
SOURCEDIR=$1
BUILDPLUGINS=$2
SPLUGINFOLDER=$3
Expand Down

0 comments on commit 998f694

Please sign in to comment.