From 230717084bdbe0f4cd27d60ec3f88c08cba5e0d8 Mon Sep 17 00:00:00 2001 From: oGre Date: Mon, 20 Mar 2017 20:23:25 +0100 Subject: [PATCH] Remove unnecessary unset of the local variable --- gitprompt.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 4c7eea8..7665662 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -499,7 +499,6 @@ function updatePrompt() { export GIT_UPSTREAM="${git_status_fields[2]}" if [[ -z "${__GIT_PROMPT_SHOW_UPSTREAM}" || "^" == "$GIT_UPSTREAM" ]]; then unset GIT_UPSTREAM - unset GIT_FORMATTED_UPSTREAM else local GIT_FORMATTED_UPSTREAM="${GIT_PROMPT_UPSTREAM//_UPSTREAM_/\$GIT_UPSTREAM}" fi