path: root/builtin/ls-remote.c
diff options
authorNguyễn Thái Ngọc Duy <>2010-08-06 03:20:08 (GMT)
committerJunio C Hamano <>2010-08-16 03:00:02 (GMT)
commitf0ef6a6eff15a3df8dc9ec61d93e3f7e540ed0ac (patch)
tree8ae35d466d2ae6708cbaf47730656e5834718273 /builtin/ls-remote.c
parente0fce074fc4fdf2d2175ff97f1cc3db918ea87e9 (diff)
ls-remote: run setup_git_directory_gently() sooner
ls-remote already runs a repository search unconditionally to learn about remote nicknames and "[url] insteadof" shortcuts. Run that search a little sooner, and now one can try [pager] ls-remote to automatically paginate ls-remote output, or use repository-local [core] pager = whatever with "git --paginate ls-remote <url>". Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin/ls-remote.c')
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c
index 34480cf..97eed40 100644
--- a/builtin/ls-remote.c
+++ b/builtin/ls-remote.c
@@ -32,7 +32,6 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
int i;
const char *dest = NULL;
- int nongit;
unsigned flags = 0;
int quiet = 0;
const char *uploadpack = NULL;
@@ -42,8 +41,6 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
struct transport *transport;
const struct ref *ref;
- setup_git_directory_gently(&nongit);
for (i = 1; i < argc; i++) {
const char *arg = argv[i];