Skip to content

Commit a2c1abb

Browse files
author
Vladimir Kotal
committed
Merge pull request #781 from vladak/dirbased_logic_fix
fix -r dirbased for remote repositories which cannot get have per-direct...
2 parents cfe5845 + 27a85b6 commit a2c1abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/opensolaris/opengrok/history/HistoryGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public History getHistory(File file, boolean withFiles, boolean ui)
221221
RemoteSCM rscm = RuntimeEnvironment.getInstance().getRemoteScmSupported();
222222
boolean doRemote = (ui && (rscm == RemoteSCM.UIONLY))
223223
|| (rscm == RemoteSCM.ON)
224-
|| ((rscm == RemoteSCM.DIRBASED) && (repo != null) && repo.hasHistoryForDirectories());
224+
|| (ui || ((rscm == RemoteSCM.DIRBASED) && (repo != null) && repo.hasHistoryForDirectories()));
225225

226226
if (repo != null && repo.isWorking() && repo.fileHasHistory(file)
227227
&& (!repo.isRemote() || doRemote)) {

0 commit comments

Comments
 (0)