commit | ef4cffde9cf45a4203be5f78cf8f025f4f694a66 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Tue Dec 11 07:53:47 2007 -0500 |
committer | Junio C Hamano <gitster@pobox.com> | Tue Dec 11 11:07:23 2007 -0800 |
tree | 2a3c491803f88015dfbeadfbc9af619d75d3e0df | |
parent | 18ff365fcb3b16d6802c04da03ceda3a260c0ab9 [diff] |
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>