File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
buildSrc/src/main/groovy/org/elasticsearch/gradle Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1138,10 +1138,10 @@ class BuildPlugin implements Plugin<Project> {
1138
1138
Path refFile = gitDir. resolve(refName)
1139
1139
if (Files . exists(refFile)) {
1140
1140
revision = readFirstLine(refFile)
1141
- } else if (Files . exists(gitDir . resolve(" packed-refs" ))) {
1141
+ } else if (Files . exists(dotGit . resolve(" packed-refs" ))) {
1142
1142
// Check packed references for commit ID
1143
1143
Pattern p = Pattern . compile(" ^([a-f1-9]{40}) " + refName + " \$ " )
1144
- Stream<String > lines = Files . lines(gitDir . resolve(" packed-refs" ));
1144
+ Stream<String > lines = Files . lines(dotGit . resolve(" packed-refs" ));
1145
1145
try {
1146
1146
revision = lines. map( { s -> p. matcher(s) })
1147
1147
.filter( { m -> m. matches() })
You can’t perform that action at this time.
0 commit comments