aboutsummaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-03-08 23:01:53 +0300
committerGitHub <noreply@github.com>2017-03-08 23:01:53 +0300
commit622c04eee3452d753024a488ed4c1b3539e8389f (patch)
treeda9f4c1082d329eb186b562726f20b79b802ec75 /functions/vcs.zsh
parentecd180a285ab5c594dd143674b2c49baf10002da (diff)
parent136a5217e3e3edda968ca191777ffb0408fffa10 (diff)
Merge branch 'next' into truncate_composer_json
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh2
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