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

worktree: allow manual ignore patterns when no .gitignore is available #1070

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

fbsb
Copy link
Contributor

@fbsb fbsb commented Feb 21, 2019

I am using go-git as a library for a personal project and noticed hard-coded excluded patterns are ignored when no .gitignore file exists at the root of the repository.

This PR fixes this behavior and allows hard-coded ignore patterns even when no .gitignore file is present

@mcuadros
Copy link
Contributor

mcuadros commented Mar 4, 2019

Can you provide a test?

@fbsb fbsb force-pushed the fix/enable-excluded-patterns branch from 2ecc89d to b2e0af9 Compare March 4, 2019 11:58
@fbsb
Copy link
Contributor Author

fbsb commented Mar 4, 2019

@mcuadros without the patch the test would fail when a .gitignore would not be present in the repository.

@mcuadros mcuadros merged commit db522f1 into src-d:master Mar 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants