swagger-api / swagger-api/swagger-codegen

Git cloning: Error: filename in tree entry contains backslash: 'SwaggerServer\lib\Models'

Open
#10,532 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Cloning the Git repo has bad developer experience since it shows an error message

error: filename in tree entry contains backslash: 'SwaggerServer\lib\Models'

Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce

git clone repourl

Related issues/PRs
Suggest a fix/enhancement

It would be good to clean the repo. This error raises concerns on the cloned content.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported git clone repourl reproduction and inspect the repository tree for the entry named SwaggerServer\lib\Models. Confirm the backslash-containing path is present and determine the repository change needed to remove it. Done means a fresh clone no longer reports this filename error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
developer-experience
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.