From: Jean-Luc Herren Date: Thu, 28 Feb 2008 22:29:54 +0000 (+0100) Subject: fast-import: exit with proper message if not a git dir X-Git-Tag: v1.5.5-rc0~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=733ee2b7a95f6f4ac03f6f8db4899bcd54d0017e;p=git.git 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 Acked-by: Shawn O. Pearce --- diff --git a/fast-import.c b/fast-import.c index 0d3449f2c..7f197d5e3 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;