Permalink
Browse files

Add initializer in gitBranches so that completion works in strict mode.

  • Loading branch information...
1 parent aa391e6 commit 377d8179ca3d03d42858a28c01165319a16f9440 @lukebakken lukebakken committed with Jun 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 GitTabExpansion.ps1
View
@@ -1,7 +1,7 @@
# Initial implementation by Jeremy Skinner
# http://www.jeremyskinner.co.uk/2010/03/07/using-git-with-windows-powershell/
-$global:GitTabSettings = New-Object PSObject -Property @{
+$Global:GitTabSettings = New-Object PSObject -Property @{
AllCommands = $false
}
@@ -46,6 +46,7 @@ function script:gitRemotes($filter) {
}
function script:gitBranches($filter, $includeHEAD = $false) {
+ $prefix = $null
if ($filter -match "^(?<from>\S*\.{2,3})(?<to>.*)") {
$prefix = $matches['from']
$filter = $matches['to']

0 comments on commit 377d817

Please sign in to comment.