Skip to content

Commit

Permalink
STCC-201 removed branchname from versionstring (#135)
Browse files Browse the repository at this point in the history
Removed the branchname from the versionstring in the pre-commit hook
This hook gets builded in helpers.py
  • Loading branch information
11possim authored and AntiDog committed Nov 13, 2019
1 parent 48ab548 commit 8fa75f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion config/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Scratch2Catrobat Converter
short_name: S2CC
version: 0.10.0
build_name: Aegean cat
build_number: 995
build_number: 996
build_type: S2CC

;-------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions src/scratchtocatrobat/tools/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ def formatted_shell_script_code(content):
CONFIG_CUSTOM_ENV_FILE_PATH="%s"
branchName=`/usr/bin/env git symbolic-ref HEAD | sed -e 's,.*/\\(.*\\),\\1,'`
gitCount=`/usr/bin/env git rev-list $branchName |wc -l | sed 's/^ *//;s/ *$//'`
simpleBranchName=`/usr/bin/env git rev-parse --abbrev-ref HEAD`
buildNumber="$((gitCount + 1))"
buildNumber+="-$simpleBranchName"
/usr/bin/env python - <<EOF
def update_build_number(config_file_name, number):
Expand Down

0 comments on commit 8fa75f7

Please # to comment.