diff options
author | Jesús <heckyel@hyperbola.info> | 2022-05-18 00:22:56 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-05-18 00:22:56 +0800 |
commit | c6f167094785254779645d9cdc29771c5e739038 (patch) | |
tree | 40489769c9f5fd380e56e3cf7ce8d9f6207d6b9a /hyperterm/core | |
parent | d872eca384bd7af02b22d0951ded91b83f97cd2c (diff) | |
download | hyperterm-c6f167094785254779645d9cdc29771c5e739038.tar.lz hyperterm-c6f167094785254779645d9cdc29771c5e739038.tar.xz hyperterm-c6f167094785254779645d9cdc29771c5e739038.zip |
Fix unused variable ___upstream
Diffstat (limited to 'hyperterm/core')
-rw-r--r-- | hyperterm/core/git.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hyperterm/core/git.sh b/hyperterm/core/git.sh index 1488a93..3ae80c2 100644 --- a/hyperterm/core/git.sh +++ b/hyperterm/core/git.sh @@ -149,7 +149,7 @@ function _git_dirty_count() { function _git_behind_count() { local __behind_count if git rev-parse --symbolic-full-name --abbrev-ref "@{upstream}" > /dev/null 2>&1; then - __behind_count="$(git rev-list --left-right --count "$___upstream"...HEAD | cut -f1 2> /dev/null)" + __behind_count="$(git rev-list --left-right --count "@{upstream}"...HEAD | cut -f1 2> /dev/null)" case $__behind_count in 0) echo -n '';; *) echo -n "$__behind_count";; @@ -160,7 +160,7 @@ function _git_behind_count() { function _git_ahead_count() { local __ahead_count if git rev-parse --symbolic-full-name --abbrev-ref "@{upstream}" > /dev/null 2>&1; then - __ahead_count="$(git rev-list --left-right --count "$___upstream"...HEAD | cut -f2 2> /dev/null)" + __ahead_count="$(git rev-list --left-right --count "@{upstream}"...HEAD | cut -f2 2> /dev/null)" case $__ahead_count in 0) echo -n '';; *) echo -n "$__ahead_count";; |