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
  • #2960
Closed
Open
Issue created Mar 10, 2017 by Mark@Javaru

libgit2 fails to resolve absolute symlinks

My .gitconfig file in my home directory is a symbolic ink to the "real" file in another location. (A portable SSD in my case.) This results in an error during installation when the installer attempts to save Credential Helper settings. Specifically:

libgit2 returned: failed to create lock file 'C:/Users/userName/.gitConfigP:/path/to/symlink/tatget/.gitconfig.lock': The filename, directory name, or volume label syntax is incorrect.

For some reason, the installer is creating a path consisting of the symlink path and the target/real file concatenated together resulting in an invalid path (since it has a second drive letter value mid-path).

What steps will reproduce the problem?

  1. Have a preexisting condition that your .gitconfig file in your home directory is a symbolic link to a "real" .gitconfig file in another directory on another drive.
  2. Run the installer and attempt to have it save "Credential Helper" settings.

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

A successful install is expected. Instead the following error message is displayed in a dialog: " libgit2 returned: failed to create lock file 'C:/Users/userName/.gitConfigP:/path/to/symlink/tatget/.gitconfig.lock': The filename, directory name, or volume label syntax is incorrect."

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

  • TortoiseGit: v2.4.0.2
  • Git: v2.11.0.windows.1
  • Windows 7 Ultimate 64-bit with Service Pack 1

Please provide any additional information below.

screenshot

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking