Skip to content

Commit

Permalink
Merge pull request dependabot#4198 from Marcono1234/patch-1
Browse files Browse the repository at this point in the history
Describe workaround for cloning with long file names on Windows
  • Loading branch information
jurre authored Oct 11, 2021
2 parents 1585319 + 319863e commit a6a8292
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ In addition to this library, you may be interested in:
GitLab or Azure DevOps
- The [API docs][api-docs] for Dependabot's hosted instance (dependabot.com)

## Cloning the repository
Clone the repository with Git using:

```
git clone https://github.com/dependabot/dependabot-core.git
```

On Windows this might fail with "Filename too long". To solve this, run the
following commands in the cloned Git repository:

1. `git config core.longpaths true`
2. `git reset --hard`

You can read more about this in the [Git for Windows wiki](https://github.com/git-for-windows/git/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path).

## Setup

To run all of Dependabot Core, you'll need Ruby, Python, PHP, Elixir, Node, Go,
Expand Down

0 comments on commit a6a8292

Please sign in to comment.