提交 733ee2b7 编写于 作者: J Jean-Luc Herren 提交者: Junio C Hamano

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: NJean-Luc Herren <jlh@gmx.ch>
Acked-by: NShawn O. Pearce <spearce@spearce.org>
上级 c0b48ad7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册