Browse Source

FileRepository: Don't use deprecated RefDatabase#getRefs(String)

Change-Id: Iec58c973537ddbe0f4e6b8b62fcda5cecc961661
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.1
David Pursehouse 7 years ago committed by Jonathan Nieder
parent
commit
1046ba12f9
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

4
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

@ -46,8 +46,6 @@
package org.eclipse.jgit.internal.storage.file;
import static org.eclipse.jgit.lib.RefDatabase.ALL;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@ -540,7 +538,7 @@ public class FileRepository extends Repository {
/** {@inheritDoc} */
@Override
public void scanForRepoChanges() throws IOException {
getRefDatabase().getRefs(ALL); // This will look for changes to refs
getRefDatabase().getRefs(); // This will look for changes to refs
detectIndexChanges();
}

Loading…
Cancel
Save