Merge pull request #1395 from zhao-li/toggle-able_commit_count

Toggle able commit count
This commit is contained in:
Nils Winkler
2019-09-02 08:45:19 +02:00
committed by GitHub
3 changed files with 28 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ setup_repo_with_upstream() {
git clone "$remote" clone
cd clone
SCM_GIT_SHOW_COMMIT_COUNT=true
git_prompt_vars
assert_equal "$SCM_BRANCH" "${pre}"
@@ -148,6 +150,7 @@ setup_repo_with_upstream() {
pushd "${repo}"
SCM_GIT_SHOW_REMOTE_INFO=true
SCM_GIT_SHOW_COMMIT_COUNT=true
git_prompt_vars
assert_equal "$SCM_BRANCH" "${pre}my-remote${post}"
@@ -168,6 +171,7 @@ setup_repo_with_upstream() {
pushd "${repo}"
SCM_GIT_SHOW_REMOTE_INFO=auto
SCM_GIT_SHOW_COMMIT_COUNT=true
git_prompt_vars
assert_equal "$SCM_BRANCH" "${pre}${post}"
@@ -204,6 +208,7 @@ setup_repo_with_upstream() {
git remote add third-remote "$(mktemp -d)"
SCM_GIT_SHOW_REMOTE_INFO=false
SCM_GIT_SHOW_COMMIT_COUNT=true
git_prompt_vars
assert_equal "$SCM_BRANCH" "${pre}${post}"
@@ -225,6 +230,7 @@ setup_repo_with_upstream() {
pushd "${repo}"
SCM_GIT_SHOW_REMOTE_INFO=true
SCM_GIT_SHOW_COMMIT_COUNT=true
git_prompt_vars
assert_equal "$SCM_BRANCH" "${pre} → my-remote${post}"