From: Kevin Sawicki Date: Tue, 6 Dec 2011 17:37:11 +0000 (-0800) Subject: Use constant for logs directory X-Git-Tag: v1.3.0.201202121842-rc4~56^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47d16163747e322b2445887e1436e0f766649c34;p=jgit.git Use constant for logs directory Change-Id: Ie139133bcbe1ca61c85e86b3484f858bc065821f --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java index 1b7fc23e73..cec48f5160 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java @@ -51,6 +51,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; +import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.util.IO; import org.eclipse.jgit.util.RawParseUtils; @@ -66,7 +67,7 @@ public class ReflogReader { * @param refname */ public ReflogReader(Repository db, String refname) { - logName = new File(db.getDirectory(), "logs/" + refname); + logName = new File(db.getDirectory(), Constants.LOGS + '/' + refname); } /**