Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 366
    • Issues 366
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
  • #133
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Command fails on folder with leading dash

By eternaln... on August 11, 2009 14:05 (imported from Google Code)


What steps will reproduce the problem?

  1. Create a folder (or file?) with a leading dash in its name, e.g. "-
    test-".
  2. Create a file in this folder.
  3. Add the folder to your repo.

What is the expected output? What do you see instead?
The folder's files should be added, instead the add command fails with
error "unknown switch, usage: git add [options]".

What version of the product are you using? On what operating system?
TGit 0.9.1, Git 1.6.3.2, Windows 7 RTM.

Please provide any additional information below.
Browsing the parent folder also crashes the cache (using default cache
settings).

NOTE: I initially posted this to the wrong project (msysgit), see the
first comment (http://code.google.com/p/msysgit/issues/detail?id=306#c1)
for a fix.

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