@matheusbsbs / matheus-bagliano / commits / 733ee2b7a9
Fork 0

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>

Jean-Luc Herren committed Feb 28, 2008 at 23:29 UTC 733ee2b7a95f6f4ac03f6f8db4899bcd54d0017e
1 file changed +1
fast-import.c
+1
@@ -2377,6 +2377,7 @@ int main(int argc, const char **argv)
2377 {
2378 unsigned int i, show_stats = 1;
2379
2380 + setup_git_directory();
2381 git_config(git_pack_config);
2382 if (!pack_compression_seen && core_compression_seen)
2383 pack_compression_level = core_compression_level;