|
|
@ -114,8 +114,6 @@ public class ObjectDirectory extends FileObjectDatabase { |
|
|
|
/** Maximum number of candidates offered as resolutions of abbreviation. */ |
|
|
|
/** Maximum number of candidates offered as resolutions of abbreviation. */ |
|
|
|
private static final int RESOLVE_ABBREV_LIMIT = 256; |
|
|
|
private static final int RESOLVE_ABBREV_LIMIT = 256; |
|
|
|
|
|
|
|
|
|
|
|
private static final String STALE_FILE_HANDLE_MSG = "stale file handle"; //$NON-NLS-1$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final Config config; |
|
|
|
private final Config config; |
|
|
|
|
|
|
|
|
|
|
|
private final File objects; |
|
|
|
private final File objects; |
|
|
@ -565,8 +563,7 @@ public class ObjectDirectory extends FileObjectDatabase { |
|
|
|
} else if (e instanceof FileNotFoundException) { |
|
|
|
} else if (e instanceof FileNotFoundException) { |
|
|
|
warnTmpl = JGitText.get().packWasDeleted; |
|
|
|
warnTmpl = JGitText.get().packWasDeleted; |
|
|
|
removePack(p); |
|
|
|
removePack(p); |
|
|
|
} else if (e.getMessage() != null |
|
|
|
} else if (FileUtils.isStaleFileHandle(e)) { |
|
|
|
&& e.getMessage().toLowerCase().contains(STALE_FILE_HANDLE_MSG)) { |
|
|
|
|
|
|
|
warnTmpl = JGitText.get().packHandleIsStale; |
|
|
|
warnTmpl = JGitText.get().packHandleIsStale; |
|
|
|
removePack(p); |
|
|
|
removePack(p); |
|
|
|
} |
|
|
|
} |
|
|
|