git-clone: print an error message when trying to clone empty repo
commitef4cffde9cf45a4203be5f78cf8f025f4f694a66
authorJeff King <peff@peff.net>
Tue, 11 Dec 2007 12:53:47 +0000 (11 07:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Dec 2007 19:07:23 +0000 (11 11:07 -0800)
tree2a3c491803f88015dfbeadfbc9af619d75d3e0df
parent18ff365fcb3b16d6802c04da03ceda3a260c0ab9
git-clone: print an error message when trying to clone empty repo

Previously, cloning an empty repository looked like this:

$ (mkdir parent && cd parent && git --bare init)
$ git-clone parent child
Initialized empty Git repository in /home/peff/clone/child/.git/
$ cd child
-bash: cd: child: No such file or directory
$ echo 'wtf?' | mail git@vger.kernel.org

Now we at least report that the clone was not successful.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh