Skip to content

Commit

Permalink
BUG initialize local variable nbOtherRemotes to zero in __tartify_rem…
Browse files Browse the repository at this point in the history
…ote()

- otherwise, issues strange numbers sometimes (like '113' which naturally
  prevent the remote marker in the prompt to appear as they are limited to 3
  remotes in addition to the traditionnal upstream and origin
  • Loading branch information
Peter Host committed May 20, 2012
1 parent fc01e2f commit d968321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/tartify
Expand Up @@ -2094,6 +2094,7 @@ __tartify_remote(){
local ps1varRadical
local nbRemotes=0
local firstRemote="true"
local nbOtherRemotes=0

# loop through remotes
#for remotename in $(git remote show); do #PROPER (new) syntax, but for compatibility with git 1.5.4.3 & before, we instead use :
Expand Down

0 comments on commit d968321

Please sign in to comment.