Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix track condition check

  • Loading branch information...
commit bf0bccb7920a9e2490ce6908fd69753991068369 1 parent de8d5ae
@orefalo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  fish/g2.fish
View
3  fish/g2.fish
@@ -541,7 +541,8 @@ function __g2_track --argument-names branch
return 1
end
- if test (command git ls-remote --exit-code . "$branch" >/dev/null ^&1) -ne 0
+ command git ls-remote --exit-code . "$branch" >/dev/null ^&1
+ if test $status -ne 0
if not __g2_askYN "Remote branch not found, would you like to refresh from the server"
command git fetch
Please sign in to comment.
Something went wrong with that request. Please try again.