Skip to content

Commit

Permalink
fix(repositories): list the files on the correct branch
Browse files Browse the repository at this point in the history
when the default is not specified
  • Loading branch information
stakach committed May 23, 2024
1 parent dfc111a commit b6b47cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/repositories.cr
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module PlaceOS::Api
def drivers : Array(String)
password = current_repo.decrypt_password if current_repo.password.presence
repo = GitRepository.new(current_repo.uri, current_repo.username, password)
repo.file_list(path: "drivers/").select do |file|
repo.file_list(ref: current_repo.branch, path: "drivers/").select do |file|
file.ends_with?(".cr") && !file.ends_with?("_spec.cr") && !file.includes?("models")
end
end
Expand Down

0 comments on commit b6b47cd

Please sign in to comment.