aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-12-06 12:37:11 (EST)
committerKevin Sawicki2011-12-08 14:36:05 (EST)
commit47d16163747e322b2445887e1436e0f766649c34 (patch)
tree443c03ea138785ea415ca978fb19bc91f32198ca
parent4e92ae1656a3cfb6d202706889afe652f2c90bb8 (diff)
downloadjgit-47d16163747e322b2445887e1436e0f766649c34.zip
jgit-47d16163747e322b2445887e1436e0f766649c34.tar.gz
jgit-47d16163747e322b2445887e1436e0f766649c34.tar.bz2
Use constant for logs directoryrefs/changes/47/4747/4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogReader.java3
1 files changed, 2 insertions, 1 deletions
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 1b7fc23..cec48f5 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);
}
/**