Non-greedy regex within git connector?

While running workflow, I see that harness is erroring out trying to fetch repo that does not match to the branch name I am referring to.

eg
i have a branch name a-b-c-d and a-b-c
While the work flow is running using helm service, and fetching the git repo using the git connector,
it is trying to fetch a-b-c instead of a-b-c-d, deleting the branch a-b-c and running the workflow again pulls down the correct branch.

ERROR 2022-11-24 15:06:22 Exception in processing GitFetchFilesTask. Reason: Failed while fetching files for Branch: a-b-c-d, FilePaths: Reason: Malformed input or input contains unmappable characters: ./repository/gitFileDownloads/hW63Ny6rQaaGsKkVjE0pJA/jSU6uZ54TZ2LwCKpc2b4tA/9a802d220d80b7a6cce2ec53d6bf76b49e0f6280/.git/refs/remotes/origin/a-b-c , ,
ERROR 2022-11-24 15:06:22 Root Cause: io.harness.exception.YamlException: Failed while fetching files for Branch: a-b-c-d, FilePaths:
Reason: Malformed input or input contains unmappable characters: ./repository/gitFileDownloads/hW63Ny6rQaaGsKkVjE0pJA/jSU6uZ54TZ2LwCKpc2b4tA//9a802d220d80b7a6cce2ec53d6bf76b49e0f6280/.git/refs/remotes/origin/a-b-c,

Hi Daniel, welcome to the Harness Community :tada:

Please help me answering following questions to unblock the issue:

  1. Can you elaborate on the use-case you are trying to solve?
  2. Can you tell me the type of deployment? Is it Helm chart deployment or native helm deployment?
  3. What version of Helm have you used for this deployment
  4. What are the manifest files you have used?
  5. Were the manifest files picked for this use-case is validated?