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 <robertshearman@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Robert Shearman committed
Jul 9, 2008 at 22:28 UTC
a0406b94d57e8443a7b31b5412763cac4ddb5d21
1 file changed
+2
imap-send.c
+2
@@ -1292,10 +1292,12 @@ main(int argc, char **argv)
1292
int ofs = 0;
1293
int r;
1294
int total, n = 0;
1295
+ int nongit_ok;
1296
1297
/* init the random number generator */
1298
arc4_init();
1299
1300
+ setup_git_directory_gently(&nongit_ok);
1301
git_config(git_imap_config, NULL);
1302
1303
if (!imap_folder) {