Skip to content

Commit 3464865

Browse files
committed
read all the files in .git/refs
1 parent 9a945cc commit 3464865

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/GitVersionCore/GitVersionCacheKeyFactory.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ public static List<string> TraverseTree(string root)
104104
// Perform whatever action is required in your scenario.
105105
System.IO.FileInfo fi = new System.IO.FileInfo(file);
106106
result.Add(fi.Name);
107-
Logger.WriteInfo(string.Format("{0}: {1}, {2}", fi.Name, fi.Length, fi.CreationTime));
107+
108+
var reader = fi.OpenText();
109+
result.Add(reader.ReadToEnd());
110+
111+
//Logger.WriteInfo(string.Format("{0}: {1}, {2}", fi.Name, fi.Length, fi.CreationTime));
108112
}
109113
catch (System.IO.FileNotFoundException e)
110114
{

0 commit comments

Comments
 (0)