login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Robert Shearman <robertshearman@...>
Date: Wednesday, July 9, 2008 - 5:28 pm

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>
---
 imap-send.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/imap-send.c b/imap-send.c
index 1ec1310..24d76a7 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) {
-- 
1.5.6.2.224.g26efb.dirty

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/4] git-imap-send: Allow the program to be run from ..., Robert Shearman, (Wed Jul 9, 5:28 pm)
speck-geostationary