-
-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from dahlbyk/rkeithhill/remove-PS2.0-support
Remove PowerShell v2 support.
- Loading branch information
Showing
11 changed files
with
68 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ os: | |
|
||
branches: | ||
only: | ||
- develop | ||
- master | ||
|
||
init: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
. $PSScriptRoot\Shared.ps1 | ||
|
||
Describe 'Get-GitBranch Tests' { | ||
Context 'Get-GitBranch GIT_DIR Tests' { | ||
It 'Returns GIT_DIR! when in .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
It 'Returns correct path when in a child folder of the .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git\hooks -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
InModuleScope posh-git { | ||
Describe 'Get-GitBranch Tests' { | ||
Context 'Get-GitBranch GIT_DIR Tests' { | ||
It 'Returns GIT_DIR! when in .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
It 'Returns correct path when in a child folder of the .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git\hooks -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.