Skip to content

Commit a1d3338

Browse files
committed
Only check for existance of .hg/dirstate for identifying hg repos
1 parent 16099f8 commit a1d3338

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/resolvers/hg.cr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ module Shards
369369
end
370370

371371
private def valid_repository?
372-
File.each_line(File.join(local_path, ".hg", "dirstate")) do |line|
373-
return true if line =~ /mirror\s*=\s*true/
374-
end
375-
false
372+
File.exists?(File.join(local_path, ".hg", "dirstate"))
376373
end
377374

378375
private def origin_url

0 commit comments

Comments
 (0)