* [PATCH] fast-import: exit with proper message if not a git dir
@ 2008-02-28 22:29 Jean-Luc Herren
2008-03-02 23:16 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Luc Herren @ 2008-02-28 22:29 UTC (permalink / raw)
To: git
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>
---
fast-import.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index 0d3449f..7f197d5 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -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;
--
1.5.4.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fast-import: exit with proper message if not a git dir
2008-02-28 22:29 [PATCH] fast-import: exit with proper message if not a git dir Jean-Luc Herren
@ 2008-03-02 23:16 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2008-03-02 23:16 UTC (permalink / raw)
To: Jean-Luc Herren, Junio C Hamano; +Cc: git
Jean-Luc Herren <jlh@gmx.ch> wrote:
> 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>
> ---
> fast-import.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fast-import.c b/fast-import.c
> index 0d3449f..7f197d5 100644
> --- a/fast-import.c
> +++ b/fast-import.c
> @@ -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;
Acked-by: Shawn O. Pearce <spearce@spearce.org>
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-02 23:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28 22:29 [PATCH] fast-import: exit with proper message if not a git dir Jean-Luc Herren
2008-03-02 23:16 ` Shawn O. Pearce
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).