diff options
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -282,7 +282,7 @@ _check_repo_status() { | |||
282 | # files contents are not the same with the last time called GIST API, so warn user to call 'gist fetch' | 282 | # files contents are not the same with the last time called GIST API, so warn user to call 'gist fetch' |
283 | [[ $(_blob_code "$1") != "$2" ]] 2>/dev/null && local status="\e[31m[outdated]\e[0m" | 283 | [[ $(_blob_code "$1") != "$2" ]] 2>/dev/null && local status="\e[31m[outdated]\e[0m" |
284 | # current HEAD is newer than remote, warn user to call 'git push' | 284 | # current HEAD is newer than remote, warn user to call 'git push' |
285 | [[ -n $(git cherry) ]] 2>/dev/null && local status="\e[31m[ahead]\e[0m" | 285 | [[ -n $(git cherry origin) ]] 2>/dev/null && local status="\e[31m[ahead]\e[0m" |
286 | echo "$status" | 286 | echo "$status" |
287 | fi | 287 | fi |
288 | fi | 288 | fi |