t1515: add tests for rev-parse out-of-repo helpers
commita4e21fb4dc0ee1783b94be78fd91b73df18992f3
authorJeff King <peff@peff.net>
Fri, 26 Feb 2016 23:26:32 +0000 (26 18:26 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Feb 2016 18:35:26 +0000 (28 10:35 -0800)
treec84793ab2596b1aa805628b501ceef63cf9ae0a2
parent326e5bc91eecf73234ead29636207bc516573e79
t1515: add tests for rev-parse out-of-repo helpers

The git-rev-parse command is a dumping ground for helpers
that let scripts make various queries of git. Many of these
are conceptually independent of being inside a git
repository.

With the exception of --parseopt, we do not directly test
most of these features in our test suite. Let's give them
some basic sanity checks, which reveals that some of them
have been broken for some time when run from outside a
repository.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1515-rev-parse-outside-repo.sh [new file with mode: 0755]