File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ function git_prompt_config()
107
107
GIT_PROMPT_FETCH_TIMEOUT=${1-5}
108
108
if [ " x$__GIT_STATUS_CMD " == " x" ]
109
109
then
110
+ git_prompt_dir
110
111
local sfx file
111
112
# look first for a '.sh' version, then use the python version
112
113
for sfx in sh py ; do
@@ -124,6 +125,8 @@ function setGitPrompt() {
124
125
local EMPTY_PROMPT
125
126
local __GIT_STATUS_CMD
126
127
128
+ git_prompt_config
129
+
127
130
local repo=` git rev-parse --show-toplevel 2> /dev/null`
128
131
if [[ ! -e " ${repo} " ]]; then
129
132
PS1=" ${EMPTY_PROMPT} "
@@ -135,6 +138,9 @@ function setGitPrompt() {
135
138
}
136
139
137
140
function checkUpstream() {
141
+ local GIT_PROMPT_FETCH_TIMEOUT
142
+ git_prompt_config
143
+
138
144
local FETCH_HEAD=" ${repo} /.git/FETCH_HEAD"
139
145
# Fech repo if local is stale for more than $GIT_FETCH_TIMEOUT minutes
140
146
if [[ ! -e " ${FETCH_HEAD} " || -e ` find " ${FETCH_HEAD} " -mmin +${GIT_PROMPT_FETCH_TIMEOUT} ` ]]
253
259
fi
254
260
255
261
git_prompt_dir
256
- git_prompt_config
257
262
source $__GIT_PROMPT_DIR /git-prompt-help.sh
You can’t perform that action at this time.
0 commit comments