diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2014-06-06 21:18:16 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-09-07 01:10:51 +0200 |
commit | bbe99d5b39326f618fec0702bfabbfa374f09b00 (patch) | |
tree | 238ceab29fd6679500e72901f6d08bcf3753db4c /org.eclipse.jgit.pgm | |
parent | 2475d95374d28c7df4ac12baef22090da4f409ba (diff) | |
download | jgit-bbe99d5b39326f618fec0702bfabbfa374f09b00.tar.gz jgit-bbe99d5b39326f618fec0702bfabbfa374f09b00.zip |
Fix the ls-remote command when there is no local repo
Bug: 436695
Change-Id: I567f9a8e355c7624efa3efc9bac4f3b9015afa97
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java index 1842b725e9..93fcd66c55 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java @@ -80,6 +80,11 @@ class LsRemote extends TextBuiltin { } } + @Override + protected boolean requiresRepository() { + return false; + } + private void show(final AnyObjectId id, final String name) throws IOException { outw.print(id.name()); |