{"thread":{"id":"12374","subject":"[PATCH] fast-import: exit with proper message if not a git dir","startedAt":"2008-02-28T22:29:54Z","lastAt":"2008-03-02T23:16:49Z","messageCount":2,"participants":["Jean-Luc Herren","Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"70326","messageId":"47C735E2.2010500@gmx.ch","threadId":"12374","inReplyTo":null,"subject":"[PATCH] fast-import: exit with proper message if not a git dir","fromName":"Jean-Luc Herren","fromEmail":"jlh@gmx.ch","sentAt":"2008-02-28T22:29:54Z","receivedAt":"2008-02-28T22:29:54Z","isPatch":true,"sender":{"key":"jlh@gmx.ch","avatar":null},"body":"git fast-import expects to be run from an existing (possibly\nempty) repository.  It was dying with a suboptimal message if that\nwasn't the case.\n\nSigned-off-by: Jean-Luc Herren <jlh@gmx.ch>\n---\n fast-import.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/fast-import.c b/fast-import.c\nindex 0d3449f..7f197d5 100644\n--- a/fast-import.c\n+++ b/fast-import.c\n@@ -2377,6 +2377,7 @@ int main(int argc, const char **argv)\n {\n \tunsigned int i, show_stats = 1;\n \n+\tsetup_git_directory();\n \tgit_config(git_pack_config);\n \tif (!pack_compression_seen && core_compression_seen)\n \t\tpack_compression_level = core_compression_level;\n-- \n1.5.4.2\n"},{"id":"70710","messageId":"20080302231649.GD8410@spearce.org","threadId":"12374","inReplyTo":"47C735E2.2010500@gmx.ch","subject":"Re: [PATCH] fast-import: exit with proper message if not a git dir","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-03-02T23:16:49Z","receivedAt":"2008-03-02T23:16:49Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jean-Luc Herren <jlh@gmx.ch> wrote:\n> git fast-import expects to be run from an existing (possibly\n> empty) repository.  It was dying with a suboptimal message if that\n> wasn't the case.\n> \n> Signed-off-by: Jean-Luc Herren <jlh@gmx.ch>\n> ---\n> fast-import.c |    1 +\n> 1 files changed, 1 insertions(+), 0 deletions(-)\n> \n> diff --git a/fast-import.c b/fast-import.c\n> index 0d3449f..7f197d5 100644\n> --- a/fast-import.c\n> +++ b/fast-import.c\n> @@ -2377,6 +2377,7 @@ int main(int argc, const char **argv)\n> {\n> \tunsigned int i, show_stats = 1;\n> \n> +\tsetup_git_directory();\n> \tgit_config(git_pack_config);\n> \tif (!pack_compression_seen && core_compression_seen)\n> \t\tpack_compression_level = core_compression_level;\n\nAcked-by: Shawn O. Pearce <spearce@spearce.org>\n\n-- \nShawn.\n"}]}