Permalink
Browse files

We can redirect output to $null

  • Loading branch information...
1 parent ba0bde5 commit 7d094ec5e9c83956bd71fadee8c3168f36f38205 @Iristyle committed Oct 6, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 Posh-Github.psm1
View
@@ -11,8 +11,7 @@ function GetRemotes
$remotes = @{}
#try to sniff out the repo based on 'upstream'
if ($matches -ne $null) { $matches.Clear() }
- # 2 is stderr and 3 is an undefined output handle - >nul won't work
- $gitRemotes = git remote -v show 2>3
+ $gitRemotes = git remote -v show 2> $null
$pattern = '^(.*)?\t.*github.com\/(.*)\/(.*) \((fetch|push)\)'
$gitRemotes |

0 comments on commit 7d094ec

Please sign in to comment.