Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lines starting with ** #2

Open
stek29 opened this issue Jul 31, 2019 · 1 comment
Open

Lines starting with ** #2

stek29 opened this issue Jul 31, 2019 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@stek29
Copy link

stek29 commented Jul 31, 2019

If line in .gitignore already starts with **, then gitignore-to-dockerignore emits **/**, which should be just **.

Steps to reproduce:

echo "**/*.o" > .gitignore
gitignore-to-dockerignore
cat .dockerignore

Expected:

.git/
**/*.o

Got:

.git/
**/**/*.o
@jlarmstrongiv
Copy link

Workaround is just:

  gitignoreToDockerignore(dotGitignore).replace(
    /\*\*\/\*\*\//g,
    "**/",
  );

@LinusU LinusU added help wanted Extra attention is needed good first issue Good for newcomers labels Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants