From: Franck Bui-Huu <vagabon.xyz@gmail.com>
To: junkio@cox.net
Cc: git@vger.kernel.org, Franck Bui-Huu <vagabon.xyz@gmail.com>
Subject: [PATCH 3/3] git-tar-tree.c: no need to be in a git repo when using --remote
Date: Thu, 31 Aug 2006 14:35:23 +0200 [thread overview]
Message-ID: <11570277232555-git-send-email-vagabon.xyz@gmail.com> (raw)
In-Reply-To: <11570277231100-git-send-email-vagabon.xyz@gmail.com>
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
---
builtin-tar-tree.c | 2 ++
git.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c
index 61a4135..ad1a8a6 100644
--- a/builtin-tar-tree.c
+++ b/builtin-tar-tree.c
@@ -390,6 +390,8 @@ int cmd_tar_tree(int argc, const char **
usage(tar_tree_usage);
if (!strncmp("--remote=", argv[1], 9))
return remote_tar(argc, argv);
+ if (prefix == NULL)
+ prefix = setup_git_directory();
return generate_tar(argc, argv, prefix);
}
diff --git a/git.c b/git.c
index bd07289..c323d30 100644
--- a/git.c
+++ b/git.c
@@ -262,7 +262,7 @@ static void handle_internal_command(int
{ "show", cmd_show, RUN_SETUP | USE_PAGER },
{ "stripspace", cmd_stripspace },
{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
- { "tar-tree", cmd_tar_tree, RUN_SETUP },
+ { "tar-tree", cmd_tar_tree },
{ "zip-tree", cmd_zip_tree, RUN_SETUP },
{ "unpack-objects", cmd_unpack_objects, RUN_SETUP },
{ "update-index", cmd_update_index, RUN_SETUP },
--
1.4.2
next prev parent reply other threads:[~2006-08-31 12:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-31 12:35 [PATCH 0/3] git-daemon: plug new upload-tar command Franck Bui-Huu
2006-08-31 12:35 ` [PATCH 1/3] daemon.c: introduce daemon's service Franck Bui-Huu
2006-08-31 13:07 ` Franck Bui-Huu
2006-08-31 15:15 ` [PATCH 1/3] daemon.c: introduce daemon's service [take #2] Franck Bui-Huu
2006-08-31 12:35 ` [PATCH 2/3] daemon.c: added upload-tar service Franck Bui-Huu
2006-08-31 12:35 ` Franck Bui-Huu [this message]
2006-08-31 17:45 ` [PATCH 0/3] git-daemon: plug new upload-tar command Rene Scharfe
2006-09-02 8:14 ` Franck Bui-Huu
2006-09-02 10:32 ` Junio C Hamano
2006-09-02 10:36 ` Jakub Narebski
2006-09-02 20:12 ` Franck Bui-Huu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11570277232555-git-send-email-vagabon.xyz@gmail.com \
--to=vagabon.xyz@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).