Skip to content

Commit 733ee2b

Browse files
jlherrengitster
authored andcommitted
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>
1 parent c0b48ad commit 733ee2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fast-import.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,7 @@ int main(int argc, const char **argv)
23772377
{
23782378
unsigned int i, show_stats = 1;
23792379

2380+
setup_git_directory();
23802381
git_config(git_pack_config);
23812382
if (!pack_compression_seen && core_compression_seen)
23822383
pack_compression_level = core_compression_level;

0 commit comments

Comments
 (0)