Skip to content

[Bug]: .gitignore in nested folder is ignored for local repos #2485

@peterschmidt85

Description

@peterschmidt85

Steps to reproduce

  1. Create/open a folder that is not a remote Git repo
  2. Do dstack init
  3. Create a nested folder folder
  4. Create a folder/hello.txt
  5. Create the following folder/.gitignore
hello.txt
  1. Create the following .dstack.yml
type: task

commands:
  - find .
  1. Do dstack apply

Actual behaviour

The folder/hello.txt is listed in the output

Expected behaviour

The folder/hello.txt shouldn't be listed

dstack version

0.19.2

Server logs

Additional information

This issue is a blocker when a nested folder contains large files, leading to a "2MB exceed” error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions