Skip to content

[Bug]: the repo not cloned if working_dir is inside the repo #3236

@un-def

Description

@un-def

Steps to reproduce

type: task
name: task
python: 3.13

working_dir: ~/repo/distributed/ddp-tutorial-series
repos:
  - url: https://github.com/pytorch/examples.git
    path: ~/repo
commands:
  - pwd
  - ls -1a

Actual behaviour

/root/repo/distributed/ddp-tutorial-series
.
..

Expected behaviour

/root/repo/distributed/ddp-tutorial-series
.
..
README.md
datautils.py
multigpu.py
multigpu_torchrun.py
multinode.py
requirements.txt
single_gpu.py
slurm

dstack version

0.19.34

Server logs

Additional information

$ dstack logs -d task | grep -i repo
msg=Job working dir path=/root/repo/distributed/ddp-tutorial-series
msg=Job repo dir path=/root/repo
msg=checking if repo checkout is needed
msg=skipping repo checkout: repo dir is not empty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions