Skip to content

Commit

Permalink
fast-import: exit with proper message if not a git dir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-Luc Herren authored and Junio C Hamano committed Mar 3, 2008
1 parent c0b48ad commit 733ee2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 733ee2b

Please sign in to comment.