workdirs: cannot clone a local workdir directory
- From
Bjørnar Snoksrud <snoksrud@gmail.com>
- Date
- Jul 15, 2015, 09:40 UTC
- Message-ID
- <CA+cck7GR1Gs+OvhweQZFs0=5uKu=RwEgY=0_0CZSCDqtDWrR2A@mail.gmail.com>
I reported this before, but now I have a nice topic to hang it on -
I have re-reproduced the bug using a build from master as of today, using the new worktree commands.
Reproduction: Creating a repo `foo`, checkout --to'ing it to ../bar, then try to clone both resulting repositories..
$ git --version git version 2.4.4.600.g6397abd $ mkdir foo $ cd foo $ git init Initialized empty Git repository in /bar/foo/.git/ $ git commit -m init --allow-empty [master (root-commit) c6da399] init $ git branch bar $ git checkout bar --to ../bar Enter ../bar (identifier bar) Switched to branch 'bar' $ cd ../bar $ cd bar $ git status -sb ## bar $ cd .. $ git clone bar baz Cloning into 'baz'... fatal: '/path/bar' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. $ git clone foo baz Cloning into 'baz'... done.
-- bjornar@snoksrud.no