Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3155
Closed
Open
Issue created Feb 07, 2018 by Yue Lin Ho@YueLinHoDeveloper

Can't parse config file if the encoding is UTF-8 BOM

What steps will reproduce the problem?

  1. Change encoding of .gitmodules file from UTF-8 to UTF-8 BOM (See https://gitlab.com/YueLinHo/tortoisegit/commits/utf8_cfg_file branch as testing case)
  2. Invoke Submodule Update dialog

What is the expected output? What do you see instead?

Expect: shows all submodules in list
Instead: empty list

What version of TortoiseGit and Git are you using? On what operating system?

TortoiseGit 2.5.7.0
(20180127-b2d00f87; C:\Program Files\TortoiseGit\bin)

git version 2.15.1.windows.2
(C:\Program Files\Git\bin; C:\Program Files\Git\mingw64; C:\Program Files\Git\mingw64\etc\gitconfig; C:\ProgramData\Git\config)

Please provide any additional information below.

TortoiseGit 2.5.0 is good.

I can trace how it failed to parse, and it's within the libgit2 code.

For testing case, also see https://github.com/YueLinHo/TortoiseGit/tree/utf8_cfg_file branch.

Edited Feb 07, 2018 by Yue Lin Ho
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking