Skip to content

Commit 6d7b971

Browse files
committed
addressed issue where pull doesn't work with preview
1 parent ba01e48 commit 6d7b971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/_zpkg/isc/sc/git/Socket.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Property OriginalDevice;
1212
ClassMethod Run()
1313
{
1414
If %request.Get("method") = "preview" {
15-
Do ##class(SourceControl.Git.API).Pull(1)
15+
set branchName = ##class(SourceControl.Git.Utils).GetCurrentBranch()
16+
do ..RunGitWithArgs(.errStream, .outStream, "pull", "origin/" _ branchName)
1617
} ElseIf %request.Get("method") = "pull" {
1718
Do ##class(SourceControl.Git.API).Pull()
1819
} ElseIf %request.Get("method") = "init" {

0 commit comments

Comments
 (0)