Skip to content

Commit 25986c5

Browse files
committed
Undo incorrect renames
1 parent de3a982 commit 25986c5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

utils/query-state/Get-BranchSyncState.mocks.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Initialize-RemoteBranchSyncState([String] $branchName, [AllowEmptyStrin
1212
if ($null -eq $remote) { throw 'Do not initialize remote state if remote is not set' }
1313
$remoteBranch = "$remote/$branchName"
1414

15-
Invoke-MockGit "for-each-ref --format=%(if:equals=$remoteBranch)%(dependency:short)%(then)%(dependency:trackshort)%(else)%(end) refs/heads --omit-empty" $state
15+
Invoke-MockGit "for-each-ref --format=%(if:equals=$remoteBranch)%(upstream:short)%(then)%(upstream:trackshort)%(else)%(end) refs/heads --omit-empty" $state
1616
}
1717

1818
function Initialize-RemoteBranchBehind([String] $branchName) {

utils/query-state/Get-BranchSyncState.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Get-BranchSyncState(
88
if ($config.remote -ne $nil) {
99
# Will give empty string for not tracked, `<` for behind, `>` for commits that aren't pushed, `=` for same, and `<>` for both remote and local have extra commits
1010
$syncState = Invoke-ProcessLogs "get sync state for $($config.remote)/$branchName" {
11-
git for-each-ref "--format=%(if:equals=$($config.remote)/$branchName)%(dependency:short)%(then)%(dependency:trackshort)%(else)%(end)" refs/heads --omit-empty
11+
git for-each-ref "--format=%(if:equals=$($config.remote)/$branchName)%(upstream:short)%(then)%(upstream:trackshort)%(else)%(end)" refs/heads --omit-empty
1212
} -allowSuccessOutput
1313

1414
return $syncState

utils/query-state/Get-LocalBranchForRemote.mocks.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function Initialize-GetLocalBranchForRemote([string] $remoteBranch, [string][All
99
$remote = $(Get-Configuration).remote
1010
if ($null -eq $remote) { return }
1111

12-
Invoke-MockGit "for-each-ref --format=%(if:equals=$remote/$remoteBranch)%(dependency:short)%(then)%(refname:short)%(else)%(end) refs/heads --omit-empty" -MockWith $localBranch
12+
Invoke-MockGit "for-each-ref --format=%(if:equals=$remote/$remoteBranch)%(upstream:short)%(then)%(refname:short)%(else)%(end) refs/heads --omit-empty" -MockWith $localBranch
1313
}
1414

1515
Export-ModuleMember -Function Initialize-GetLocalBranchForRemote

utils/query-state/Get-LocalBranchForRemote.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Get-LocalBranchForRemote(
88
if ($config.remote -ne $nil) {
99
# Gets the local version of the remote tracking branch:
1010
$localBranch = Invoke-ProcessLogs "get local branch for $($config.remote)/$branchName" {
11-
git for-each-ref "--format=%(if:equals=$($config.remote)/$branchName)%(dependency:short)%(then)%(refname:short)%(else)%(end)" refs/heads --omit-empty
11+
git for-each-ref "--format=%(if:equals=$($config.remote)/$branchName)%(upstream:short)%(then)%(refname:short)%(else)%(end)" refs/heads --omit-empty
1212
} -allowSuccessOutput
1313

1414
return $localBranch

0 commit comments

Comments
 (0)