]> source.dussan.org Git - jgit.git/commitdiff
Use constant for logs directory 47/4747/4
authorKevin Sawicki <kevin@github.com>
Tue, 6 Dec 2011 17:37:11 +0000 (09:37 -0800)
committerKevin Sawicki <kevin@github.com>
Thu, 8 Dec 2011 19:36:05 +0000 (11:36 -0800)
Change-Id: Ie139133bcbe1ca61c85e86b3484f858bc065821f

org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java

index 1b7fc23e732ed489e3e9276ef4ce774370207e51..cec48f5160d1ab128b96f750f17f7d929eb5c2d6 100644 (file)
@@ -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);
        }
 
        /**