Skip to content

Commit 4e70767

Browse files
committed
Added warning on initial connection
1 parent 9733e10 commit 4e70767

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cls/SourceControl/Git/Extension.cls

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Method UserAction(Type As %Integer, Name As %String, InternalName As %String, Se
4949
if Type = 1, Name = 5 {
5050
// reroute to Status menu option
5151
set Name = "%SourceMenu,Status"
52-
}
52+
if (settings.gitUserName = "") || (settings.gitUserEmail = "") {
53+
set Target = "Warning: Git committer name or email is not configured. Go to settings."
54+
set Action = 6
55+
}
56+
}
5357

5458
if (Type = 1) && (Name = 3) {
5559
if settings.warnInstanceWideUncommitted {

0 commit comments

Comments
 (0)