aboutsummaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorRobert Shearman <robertshearman@gmail.com>2008-07-09 22:28:59 +0100
committerJunio C Hamano <gitster@pobox.com>2008-07-25 21:51:29 -0700
commita0406b94d57e8443a7b31b5412763cac4ddb5d21 (patch)
treea0bcf67070e114227cc6a260ca2cdafa3714af8f /imap-send.c
parentb0320eaf6a25fbc4adf35d611c27006e6d853aa8 (diff)
downloadgit-a0406b94d57e8443a7b31b5412763cac4ddb5d21.tar.gz
git-a0406b94d57e8443a7b31b5412763cac4ddb5d21.tar.xz
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>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index 1ec131092..24d76a703 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) {