From: Robert Shearman Date: Wed, 9 Jul 2008 21:28:59 +0000 (+0100) Subject: git-imap-send: Allow the program to be run from subdirectories of a git tree X-Git-Tag: v1.6.1-rc1~344^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a0406b94d57e8443a7b31b5412763cac4ddb5d21?ds=inline;hp=b0320eaf6a25fbc4adf35d611c27006e6d853aa8 git-imap-send: Allow the program to be run from subdirectories of a git tree Call setup_git_directory_gently to allow git-imap-send to be used from subdirectories of a git tree. Signed-off-by: Robert Shearman Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index 1ec1310921..24d76a7031 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1292,10 +1292,12 @@ main(int argc, char **argv) int ofs = 0; int r; int total, n = 0; + int nongit_ok; /* init the random number generator */ arc4_init(); + setup_git_directory_gently(&nongit_ok); git_config(git_imap_config, NULL); if (!imap_folder) {