author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 4 Mar 2008 06:00:36 +0000 (01:00 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Mar 2008 06:47:14 +0000 (22:47 -0800) | ||
commit | 52dce39762fbec75b2d561e5dedb25b8e51f83eb | |
tree | 5a18e1af85c9946f1ebb1c76b03a7dedf38f5c0c | tree | snapshot |
parent | 81646ad247955a8343b58f05f12157dacabe1e5e | commit | diff |
Fix 'git remote show' regression on empty repository in 1.5.4
Back in 18f7c51c we switched git-ls-remote/git-peek-remote to
use the transport backend, rather than do everything itself.
As part of that switch we started to produce a non-zero exit
status if no refs were received from the remote peer, which
happens when the remote peer has no commits pushed to it yet.
(E.g. "git --git-dir=foo.git init; git ls-remote foo.git")
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Back in 18f7c51c we switched git-ls-remote/git-peek-remote to
use the transport backend, rather than do everything itself.
As part of that switch we started to produce a non-zero exit
status if no refs were received from the remote peer, which
happens when the remote peer has no commits pushed to it yet.
(E.g. "git --git-dir=foo.git init; git ls-remote foo.git")
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-ls-remote.c | diff | blob | history |