git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suspected bug on `git -C <rp> rev-list --all` where <rp> has 0 commits
@ 2015-11-11 18:26 yac
  2015-11-25  6:56 ` Atousa Duprat
  0 siblings, 1 reply; 5+ messages in thread
From: yac @ 2015-11-11 18:26 UTC (permalink / raw)
  To: git

Hello

basics:

% rpm -q git git-core
git-2.6.2-2.1.x86_64
git-core-2.6.2-2.1.x86_64

~ % grep PRETTY_NAME /etc/os-release
PRETTY_NAME="openSUSE Tumbleweed (20151030) (x86_64)"

current behavior:

~ % git init no-commits
Initialized empty Git repository in /home/tester/no-commits/.git/
~ % git -C no-commits rev-list --all
usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    --sparse
    --no-merges
    --min-parents=<n>
    --no-min-parents
    --max-parents=<n>
    --no-max-parents
    --remove-empty
    --all
    --branches
    --tags
    --remotes
    --stdin
    --quiet
  ordering output:
    --topo-order
    --date-order
    --reverse
  formatting output:
    --parents
    --children
    --objects | --objects-edge
    --unpacked
    --header | --pretty
    --abbrev=<n> | --no-abbrev
    --abbrev-commit
    --left-right
    --count
  special purpose:
    --bisect
    --bisect-vars
    --bisect-all
~ % echo $?
129

expected behavior:

~ % git -C no-commits rev-list --all
~ % echo $?
0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-25  9:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11 18:26 Suspected bug on `git -C <rp> rev-list --all` where <rp> has 0 commits yac
2015-11-25  6:56 ` Atousa Duprat
2015-11-25  7:00   ` [PATCH v1] git rev-list doesn't complain when repo is empty atousa.p
2015-11-25  9:10     ` Jeff King
2015-11-25  9:07   ` Suspected bug on `git -C <rp> rev-list --all` where <rp> has 0 commits Jeff King

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).