@@ -475,7 +475,7 @@ ClassMethod Pull(remote As %String = "origin") As %Status
475
475
set branchName = outStream .ReadLine (outStream .Size )
476
476
write !, " Pulling from branch: " , branchName
477
477
kill errStream , outStream
478
- set returnCode = ..RunGitWithArgs (.errStream , .outStream , " pull" , remote _ " / " _ branchName )
478
+ set returnCode = ..RunGitWithArgs (.errStream , .outStream , " pull" , remote )
479
479
480
480
w !, " Pull ran with return code: " _ returnCode
481
481
quit $$$OK
@@ -1534,10 +1534,6 @@ ClassMethod RunGitCommand(command As %String, Output errStream, Output outStream
1534
1534
1535
1535
ClassMethod RunGitCommandWithInput (command As %String , inFile As %String = " " , Output errStream , Output outStream , args ...) As %Integer
1536
1536
{
1537
- set pullArg = " "
1538
- if command = " pull" {
1539
- set pullArg = args (1 )
1540
- }
1541
1537
// Special case: git --version is used internally even when the settings incorporated here may be invalid/unspecified.
1542
1538
if (command '= " --version" ) {
1543
1539
set newArgs ($increment (newArgs )) = " -C"
@@ -1569,11 +1565,11 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
1569
1565
set syncIrisWithCommand = 0 // // whether IRIS needs to be synced with repo file changes using command output
1570
1566
set diffBase = " "
1571
1567
set diffCompare = " "
1572
- set pullOriginIndex = " "
1573
- if (command = " checkout" ) || ( command = " pull " ) {
1568
+
1569
+ if (command = " checkout" ){
1574
1570
set syncIrisWithDiff = 1
1575
1571
set diffCompare = args (args )
1576
- } elseif (command = " merge" ) || (command = " rebase" ) {
1572
+ } elseif (command = " merge" ) || (command = " rebase" ) || ( command = " pull " ) {
1577
1573
set syncIrisWithCommand = 1
1578
1574
set diffCompare = args (args )
1579
1575
}
@@ -1582,24 +1578,18 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
1582
1578
for i =1 :1 :$get (args ) {
1583
1579
if ($data (args (i ))) {
1584
1580
set newArgs ($increment (newArgs )) = args (i )
1585
- if newArgs (newArgs ) = pullArg {
1586
- set pullOriginIndex = newArgs
1587
- }
1588
- if (args (i ) = " checkout" ) || (args (i ) = " pull" ){
1581
+ if (args (i ) = " checkout" ) {
1589
1582
set syncIrisWithDiff = 1
1590
1583
set diffCompare = args (i + 1 )
1591
1584
1592
1585
if args = (i + 2 ) {
1593
1586
set diffBase = args (i + 2 )
1594
1587
}
1595
- } elseif (args (i ) = " merge" ) || (args (i ) = " rebase" ){
1588
+ } elseif (args (i ) = " merge" ) || (args (i ) = " rebase" ) || ( args ( i ) = " pull " ) {
1596
1589
set syncIrisWithCommand = 1
1597
1590
set diffCompare = args (i + 1 )
1598
1591
}
1599
1592
1600
- if (args (i ) = " pull" ) {
1601
- set pullOriginIndex = i
1602
- }
1603
1593
}
1604
1594
}
1605
1595
@@ -1631,9 +1621,6 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
1631
1621
write !, ?4 , modification .changeType , ?4 , modification .internalName , ?4 , modification .externalName
1632
1622
}
1633
1623
1634
- if pullOriginIndex '= " " {
1635
- set newArgs (pullOriginIndex ) = $piece (newArgs (pullOriginIndex ), " /" , 1 )
1636
- }
1637
1624
}
1638
1625
1639
1626
set outLog = ##class (%Library.File ).TempFilename ()
@@ -1662,7 +1649,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
1662
1649
for stream =errStream ,outStream {
1663
1650
set stream .RemoveOnClose = 1
1664
1651
}
1665
- // do ..PrintStreams(errStream, outStream)
1652
+ do ..PrintStreams (errStream , outStream )
1666
1653
if syncIrisWithDiff {
1667
1654
$$$ThrowOnError(..SyncIrisWithRepoThroughDiff (.files ))
1668
1655
} elseif syncIrisWithCommand {
0 commit comments