Skip to content

Commit 0ec566c

Browse files
committed
single-db mode single file option needs to use same method as full database mode
1 parent a0ad71a commit 0ec566c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BitCheck/Application/BitCheckApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private void ProcessSingleFile(string filePath)
275275
if (_options.SingleDatabase)
276276
{
277277
// In single-db mode, use the database in the current directory with relative path as key
278-
var rootPath = Path.GetFullPath(".");
278+
var rootPath = Directory.GetCurrentDirectory();
279279
dbPath = Path.Combine(rootPath, BitCheckConstants.DatabaseFileName);
280280
databaseKey = Path.GetRelativePath(rootPath, fullFilePath);
281281
}

0 commit comments

Comments
 (0)