Skip to content

Commit indexer is not working for repository root #1516

Open
@rsabirov

Description

@rsabirov

I am creating Virtual File system for my application. As input I am getting file paths or directory paths. I found that app works perfectly for any paths except for root.

Technically speaking I cannot get TreeEntry for repo root directory.

            Commit commit = GetCommit(commitHash);

            // this works
            var file = commit["foo.txt"];
            var dir1 = commit["var/logs"];
            var dir2 = commit["var"];

            // this doesn't work
            ver rootDir = commit["/"]; // returns null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions