Skip to content

Labels without the branch folder listed as an item are not found #1125

@andyrooger

Description

@andyrooger

  • you have read the documentation about command line options and advanced use cases
  • upgrade and test with the last version
  • specify the version you are using (0.27.0)
  • include steps you followed to reproduce the problem (below)
  • if the problem occurs when using a git-tfs command, please provide the output of the command when using the --debug command line option (providing a gist could be a clever idea ;))

In the repository I'm migrating we have a lot of labels that are not being picked up by git-tfs. They look like

  • Scoped to $/ProjectName
  • Intended to apply to the branch $/ProjectName/Releases/Version
  • Items include many files inside of the branch folder, but do not include just that folder specifically. e.g. They may include $/ProjectName/Releases/Version/Component/Solution.sln but not $/ProjectName/Releases/Version itself.

We have other build labels that do include the branch folder specifically and these are picked up correctly. The code looks like an item filter is applied for that folder when looking for labels. I have a fix that worked in my case, PR forthcoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions