Merge pull request #24 from tuxinaut/master

Fix indent, Strip traling spaces and convert tabs to spaces
master
Martin Gondermann 12 years ago
commit fc8e35f5a8
  1. 10
      gitprompt.sh

@ -2,9 +2,9 @@
function async_run() function async_run()
{ {
{ {
$1 &> /dev/null $1 &> /dev/null
}& }&
} }
function git_prompt_dir() function git_prompt_dir()
@ -110,8 +110,8 @@ function checkUpstream() {
if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]]
then then
if [[ -n $(git remote show) ]]; then if [[ -n $(git remote show) ]]; then
async_run "git fetch --quiet" async_run "git fetch --quiet"
disown disown
fi fi
fi fi
} }

Loading…
Cancel
Save