Skip to content

Commit

Permalink
Don't call org.eclipse.jgit.lib.Repository's refreshFromDisk()
Browse files Browse the repository at this point in the history
This method was removed upstream [1], [2] as a part of refactoring.

[1] JGit commit: 01b5392cdbc12ce2e21fd1d1afbd61fdf97e1c38
[2] http://egit.eclipse.org/r/194

Signed-off-by: Mykola Nikishov <[email protected]>
  • Loading branch information
manandbytes committed Jun 28, 2010
1 parent 686671f commit 5637f28
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/org/nbgit/util/GitCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ public static Map<File, StatusInfo> getAllStatus(File root, File dir) throws IOE
Map<File, StatusInfo> files = new HashMap<File, StatusInfo>();

try {
repo.refreshFromDisk();
IndexDiff index = new IndexDiff(repo);
index.diff();

Expand Down Expand Up @@ -558,7 +557,6 @@ public static Map<File, StatusInfo> getInterestingStatus(File root, File dir) {
Map<File, StatusInfo> files = new HashMap<File, StatusInfo>();

try {
repo.refreshFromDisk();
index = new IndexDiff(repo);
index.diff();

Expand Down Expand Up @@ -623,7 +621,6 @@ public static StatusInfo getSingleStatus(File root, File file) {
String name = getRelative(root, file);

try {
repo.refreshFromDisk();
index = new IndexDiff(repo);
index.diff();
} catch (IOException ex) {
Expand Down

0 comments on commit 5637f28

Please sign in to comment.