git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Steve Hoelzer" <shoelzer@gmail.com>
To: git@vger.kernel.org
Subject: git-log fatal error in empty repo
Date: Thu, 7 Jun 2007 08:34:20 -0500	[thread overview]
Message-ID: <588192970706070634s4c25ae45g68be32c06a30d043@mail.gmail.com> (raw)

git-log will return a fatal error for an empty repo, like so:

$ git --version
git version 1.5.2.73.g18bece
$ mkdir mytest
$ cd mytest
$ git-init
Initialized empty Git repository in .git/
$ git-log
fatal: bad default revision 'HEAD'

It would be nice if git-log was quiet or returned a "no log" message
instead of the fatal error.

Steve

             reply	other threads:[~2007-06-07 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-07 13:34 Steve Hoelzer [this message]
2007-06-07 20:29 ` git-log fatal error in empty repo Junio C Hamano
2007-06-09  2:31   ` Geert Bosch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=588192970706070634s4c25ae45g68be32c06a30d043@mail.gmail.com \
    --to=shoelzer@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).