summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1658c61)
raw | patch | inline | side by side (parent: 1658c61)
author | Frank Lichtenheld <frank@lichtenheld.de> | |
Fri, 14 Mar 2008 17:29:27 +0000 (18:29 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 15 Mar 2008 08:43:56 +0000 (01:43 -0700) |
git var works fine even when not called in a git repository. So
don't require it.
This will make it possible to remove this pre-condition for some
other git commands as well.
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
don't require it.
This will make it possible to remove this pre-condition for some
other git commands as well.
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
var.c | patch | blob | history |
index 0de0efa2aa3b216a0bc846135a54ed0dd0549f8b..c20ac919bdbe73c8cd7657d468d2dfbccf6d3aa2 100644 (file)
--- a/var.c
+++ b/var.c
int main(int argc, char **argv)
{
const char *val;
+ int nongit;
if (argc != 2) {
usage(var_usage);
}
- setup_git_directory();
+ setup_git_directory_gently(&nongit);
val = NULL;
if (strcmp(argv[1], "-l") == 0) {