Skip to content

usage of fetch #12

Open
Open
@bertsky

Description

@bertsky

I am having difficulty understanding how to use fetch. If I do not pass a checkout_dir (which I would expect to be generated from the last path component of git_repo as in git clone URL), then it says Can't checkout into a bare repo. If I do pass some checkout_dir, then I run into this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/git_lfs/__init__.py", line 165, in fetch
    with TempDir(dir=checkout_dir) as d:
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/usr/lib/python3.8/site-packages/git_lfs/utils.py", line 33, in TempDir
    d = mkdtemp(**kw)
  File "/usr/lib/python3.8/tempfile.py", line 498, in mkdtemp
    _os.mkdir(file, 0o700)
FileNotFoundError: [Errno 2] No such file or directory: 'test/tmp9jicu15s'

So this obviously expects an existing directory. Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions