Description
- Git source control version:
2.10.0
- $ZV:
IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1.2 (Build 398U) Thu Oct 3 2024 14:20:43 EDT
Error log:
USER>do ##class(SourceControl.Git.Utils).ImportAll()
==import start==
set itemList(..NameToInternalName(configFilePath)) = ""
^
<SUBSCRIPT>ListItemsInFiles+5^SourceControl.Git.Utils.1 *itemList() Subscript 1 is ""
USER>
The error seems to originate from the ##class(%File).NormalizeFilename(##class(SourceControl.Git.Settings.Document).#EXTERNALNAME, ..TempFolder())
method returning an empty string and ##class(%File).Exists(##class(%File).NormalizeFilename(""))
returning 1 (true) because ##class(%File).NormalizeFilename("")
returns the current work directory, consequently entering the following if statement with configFilePath
set to ""
see the following terminal log:
USER>w ..TempFolder()
/irisdata/durable/mgr/repo/USER/
USER>w ##class(SourceControl.Git.Settings.Document).#EXTERNALNAME
embedded-git-config.json
USER>set configFilePath = ##class(%File).NormalizeFilename(##class(SourceControl.Git.Settings.Document).#EXTERNALNAME, ..TempFolder())
USER>w configFilePath
USER>w ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath))
1
USER>
For context, I realized later that the /irisdata/durable/mgr/repo/USER/embedded-git-config.json
file does not exist on the machine. Nevertheless, it should have been skipped instead of entering this if statement
Metadata
Metadata
Assignees
Labels
No labels