Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

PlainClone breaking change for returned error in v4.8 #1027

Closed
@jstangroome

Description

@jstangroome

In v4.7.1, git.PlainClone(path, ...) would error with git.ErrRepositoryAlreadyExists if the path directory was already populated with a git repository.

In v4.8.0 the same call now returns an arbitrary fmt.Errorf("directory is not empty: %s", path) and breaks code which was checking for err == git.ErrRepositoryAlreadyExists.

Responsible code change appears to be: 3332e8d

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions