diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-26 00:47:59 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-28 23:13:02 -0800 |
commit | 5a3277133d200151fe526e56e036c933d343958a (patch) | |
tree | a33a57bedea85936d19ef8e7a2c62418dc069383 /local-fetch.c | |
parent | b191fa72ea501c0789fb1bd7a80fcec9da38804d (diff) | |
download | git-5a3277133d200151fe526e56e036c933d343958a.tar.gz git-5a3277133d200151fe526e56e036c933d343958a.tar.xz |
Make networking commands to work from a subdirectory.
These are whole-tree operations and there is not much point
making them operable from within a subdirectory, but it is easy
to do so, and using setup_git_directory() upfront helps git://
proxy specification picked up from the correct place.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'local-fetch.c')
-rw-r--r-- | local-fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/local-fetch.c b/local-fetch.c index 093110914..fa9e697fd 100644 --- a/local-fetch.c +++ b/local-fetch.c @@ -207,6 +207,8 @@ int main(int argc, char **argv) char *commit_id; int arg = 1; + setup_git_directory(); + while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') get_tree = 1; |