Skip to content

Commit a707f5d

Browse files
committed
tweak to bugfix so it only runs once per call to addtosourcecontrol
1 parent 2bf6b01 commit a707f5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,10 @@ ClassMethod AddToSourceControl(InternalName As %String) As %Status
672672
do ..RunGitCommand("add",.errStream,.outStream,filenames(i),"--intent-to-add")
673673
write !, "Added ", FileInternalName, " to source control."
674674
do ..PrintStreams(outStream, errStream)
675-
do ##class(SourceControl.Git.Change).RefreshUncommitted(,,,1)
675+
676676
}
677677
}
678+
do ##class(SourceControl.Git.Change).RefreshUncommitted(,,,1)
678679
quit ec
679680
}
680681

@@ -2545,3 +2546,4 @@ ClassMethod BaselineExport(pCommitMessage = "", pPushToRemote = "") As %Status
25452546
}
25462547

25472548
}
2549+

0 commit comments

Comments
 (0)