StreakyCobra / gws

Colorful KISS helper for git workspaces
https://streakycobra.github.io/gws/
MIT License
234 stars 22 forks source link

Return codes in `git_check_branch_origin` #6

Closed StreakyCobra closed 9 years ago

StreakyCobra commented 9 years ago

In the git_check_branch_origin function, there is a check for an error that returns "success":

# Execute the command to get the local hash, If it fails this is weird,
# so... exiting
local_hash=$(cd "$1"; "${local_cmd[@]}" 2>/dev/null) || return 0

This case must normally never happen, but it should maybe be treated in a more clean way.

Reported by mail: Frédéric Mahé