# [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.

4 messages from 2008-07-08 to 2008-07-09. Participants: Robert Shearman, Junio C Hamano, Jay Soffian, Rob Shearman.
Thread: https://gitlist.dev/t/14355

## Robert Shearman, 2008-07-08 22:18

Subject: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Message-ID: <1215555496-21335-1-git-send-email-robertshearman@gmail.com>
URL: https://gitlist.dev/e/1215555496-21335-1-git-send-email-robertshearman%40gmail.com

```
Call setup_git_directory_gently to allow git-imap-send to be used from subdirectories of a git tree.
---
 imap-send.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/imap-send.c b/imap-send.c
index 1ec1310..89a1532 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1296,6 +1296,7 @@ main(int argc, char **argv)
 	/* init the random number generator */
 	arc4_init();
 
+	setup_git_directory_gently( NULL );
 	git_config(git_imap_config, NULL);
 
 	if (!imap_folder) {
-- 
1.5.6.GIT

```

## Junio C Hamano, 2008-07-09 01:15

Subject: Re: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Message-ID: <7v3amjq2mj.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v3amjq2mj.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <1215555496-21335-1-git-send-email-robertshearman@gmail.com>

```
Robert Shearman <robertshearman@gmail.com> writes:

> Call setup_git_directory_gently to allow git-imap-send to be used from subdirectories of a git tree.
> ---
>  imap-send.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/imap-send.c b/imap-send.c
> index 1ec1310..89a1532 100644
> --- a/imap-send.c
> +++ b/imap-send.c
> @@ -1296,6 +1296,7 @@ main(int argc, char **argv)
>  	/* init the random number generator */
>  	arc4_init();
>  
> +	setup_git_directory_gently( NULL );
>  	git_config(git_imap_config, NULL);
>  
>  	if (!imap_folder) {

I thought Jeff already explained why this NULL was a bad idea, but perhaps
I was dreaming...

Besides, the extra spaces around the argument is very distracting.

```

## Jay Soffian, 2008-07-09 01:28

Subject: Re: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Message-ID: <76718490807081828k7640d07bp547a69d05a6e07c4@mail.gmail.com>
URL: https://gitlist.dev/e/76718490807081828k7640d07bp547a69d05a6e07c4%40mail.gmail.com
In-Reply-To: <7v3amjq2mj.fsf@gitster.siamese.dyndns.org>

```
On Tue, Jul 8, 2008 at 9:15 PM, Junio C Hamano <gitster@pobox.com> wrote:
> I thought Jeff already explained why this NULL was a bad idea, but perhaps
> I was dreaming...

http://article.gmane.org/gmane.comp.version-control.git/87701

j.

```

## Rob Shearman, 2008-07-09 12:08

Subject: Re: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Message-ID: <1096648c0807090508w5b161dd0xf4fc61a6653b3289@mail.gmail.com>
URL: https://gitlist.dev/e/1096648c0807090508w5b161dd0xf4fc61a6653b3289%40mail.gmail.com
In-Reply-To: <76718490807081828k7640d07bp547a69d05a6e07c4@mail.gmail.com>

```
2008/7/9 Jay Soffian <jaysoffian@gmail.com>:
> On Tue, Jul 8, 2008 at 9:15 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> I thought Jeff already explained why this NULL was a bad idea, but perhaps
>> I was dreaming...
>
> http://article.gmane.org/gmane.comp.version-control.git/87701

Sorry, I missed that message. I'll resend the patch with his suggestion.

-- 
Rob Shearman

```
