Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Herren <jlh@gmx.ch>2008-02-29 01:29:54 +0300
committerJunio C Hamano <gitster@pobox.com>2008-03-03 03:07:41 +0300
commit733ee2b7a95f6f4ac03f6f8db4899bcd54d0017e (patch)
tree687e900592c6720bd4edd9454d374dd40b2f7830 /fast-import.c
parentc0b48ad777eb8ad42d8d0eafc8f0ee82955b1319 (diff)
fast-import: exit with proper message if not a git dir
git fast-import expects to be run from an existing (possibly empty) repository. It was dying with a suboptimal message if that wasn't the case. Signed-off-by: Jean-Luc Herren <jlh@gmx.ch> Acked-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index 0d3449f2ce..7f197d5e36 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -2377,6 +2377,7 @@ int main(int argc, const char **argv)
{
unsigned int i, show_stats = 1;
+ setup_git_directory();
git_config(git_pack_config);
if (!pack_compression_seen && core_compression_seen)
pack_compression_level = core_compression_level;