{"thread":{"id":"14381","subject":"[PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.","startedAt":"2008-07-09T21:28:59Z","lastAt":"2008-07-09T21:28:59Z","messageCount":1,"participants":["Robert Shearman"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"82754","messageId":"1215638942-25010-1-git-send-email-robertshearman@gmail.com","threadId":"14381","inReplyTo":null,"subject":"[PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.","fromName":"Robert Shearman","fromEmail":"robertshearman@gmail.com","sentAt":"2008-07-09T21:28:59Z","receivedAt":"2008-07-09T21:28:59Z","isPatch":true,"sender":{"key":"robertshearman@gmail.com","avatar":null},"body":"Call setup_git_directory_gently to allow git-imap-send to be used from subdirectories of a git tree.\n\nSigned-off-by: Robert Shearman <robertshearman@gmail.com>\n---\n imap-send.c |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/imap-send.c b/imap-send.c\nindex 1ec1310..24d76a7 100644\n--- a/imap-send.c\n+++ b/imap-send.c\n@@ -1292,10 +1292,12 @@ main(int argc, char **argv)\n \tint ofs = 0;\n \tint r;\n \tint total, n = 0;\n+\tint nongit_ok;\n \n \t/* init the random number generator */\n \tarc4_init();\n \n+\tsetup_git_directory_gently(&nongit_ok);\n \tgit_config(git_imap_config, NULL);\n \n \tif (!imap_folder) {\n-- \n1.5.6.2.224.g26efb.dirty\n"}]}