diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-02-28 03:52:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 03:52:06 +0300 |
commit | 51d971a032c20295ec811a41f71f3f4b48a95827 (patch) | |
tree | e82f4440370a11c29d4944e94210b08a55b55137 | |
parent | 02df303651c13a05eaef73192f853120481f0d33 (diff) | |
parent | b59d73c039a677ac8f8d682171f8f4c4b401b812 (diff) |
Merge pull request #413 from davidmpaz/icon_by_repo
vcs: Hide error when no origin in git repo
-rw-r--r-- | functions/vcs.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh index 5defa9bc..c3e507b9 100644 --- a/functions/vcs.zsh +++ b/functions/vcs.zsh @@ -111,7 +111,7 @@ function +vi-hg-bookmarks() { function +vi-vcs-detect-changes() { if [[ "${hook_com[vcs]}" == "git" ]]; then - local remote=`git ls-remote --get-url` + local remote=$(git ls-remote --get-url 2> /dev/null) if [[ "$remote" =~ "github" ]] then vcs_visual_identifier='VCS_GIT_GITHUB_ICON' elif [[ "$remote" =~ "bitbucket" ]] then |