diff --git a/libexec/pyenv---version b/libexec/pyenv---version index f2fa2ed3..82e61b58 100755 --- a/libexec/pyenv---version +++ b/libexec/pyenv---version @@ -12,7 +12,7 @@ set -e [ -n "$PYENV_DEBUG" ] && set -x -version="0.4.0-20140602" +version="20140602" if cd "$PYENV_ROOT" 2>/dev/null; then git_revision="$(git describe --tags HEAD 2>/dev/null || true)" diff --git a/test/--version.bats b/test/--version.bats index e035211a..77196929 100644 --- a/test/--version.bats +++ b/test/--version.bats @@ -16,7 +16,7 @@ git_commit() { assert [ ! -e "$PYENV_ROOT" ] run pyenv---version assert_success - [[ $output == "pyenv 0."* ]] + [[ $output == "pyenv 20"* ]] } @test "reads version from git repo" { @@ -24,14 +24,14 @@ git_commit() { cd "$PYENV_ROOT" git init git_commit - git tag v0.4.1 + git tag v20380119 git_commit git_commit cd "$PYENV_TEST_DIR" run pyenv---version assert_success - [[ $output == "pyenv 0.4.1-2-g"* ]] + [[ $output == "pyenv 20380119-2-g"* ]] } @test "prints default version if no tags in git repo" { @@ -42,5 +42,5 @@ git_commit() { cd "$PYENV_TEST_DIR" run pyenv---version - [[ $output == "pyenv 0."* ]] + [[ $output == "pyenv 20"* ]] } diff --git a/test/pyenv.bats b/test/pyenv.bats index b866d73b..2e7ecf0d 100644 --- a/test/pyenv.bats +++ b/test/pyenv.bats @@ -5,7 +5,7 @@ load test_helper @test "blank invocation" { run pyenv assert_success - assert [ "${lines[0]}" == "pyenv 0.4.0-20140602" ] + assert [ "${lines[0]}" == "pyenv 20140602" ] } @test "invalid command" {