diff options
author | Jeff King <peff@peff.net> | 2007-12-11 07:53:47 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-11 11:07:23 -0800 |
commit | ef4cffde9cf45a4203be5f78cf8f025f4f694a66 (patch) | |
tree | 2a3c491803f88015dfbeadfbc9af619d75d3e0df /builtin-revert.c | |
parent | 18ff365fcb3b16d6802c04da03ceda3a260c0ab9 (diff) | |
download | git-ef4cffde9cf45a4203be5f78cf8f025f4f694a66.tar.gz git-ef4cffde9cf45a4203be5f78cf8f025f4f694a66.tar.xz |
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>
Diffstat (limited to 'builtin-revert.c')
0 files changed, 0 insertions, 0 deletions