Skip to content

Commit 0560317

Browse files
authored
refactor(loader): [PPT-2328] root_path attribute to retrive folder contents (#92)
1 parent 61aa561 commit 0560317

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shard.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ shards:
7979

8080
git-repository:
8181
git: https://github.com/place-labs/git-repository.git
82-
version: 1.7.0
82+
version: 1.7.1
8383

8484
google:
8585
git: https://github.com/placeos/google.git

src/placeos-frontend-loader/loader.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ module PlaceOS::FrontendLoader
306306
Log.trace { "#{repository.folder_name}: downloading new content" }
307307
commit_ref = repository.commit_hash == "HEAD" ? repository.branch : repository.commit_hash
308308
commit = if (root = repository.root_path) && !root.blank?
309-
Log.trace { "Fetching folder as root_path property is set: '#{root}', size: #{root.size}" }
310-
cache.fetch_folder(commit_ref, root, repository_directory)
309+
Log.trace { "Fetching folder contents as root_path property is set: '#{root}', size: #{root.size}" }
310+
cache.fetch_folder_contents(commit_ref, root, repository_directory)
311311
else
312312
Log.trace { {message: "Fetching commit", commit_ref: commit_ref, repo_dir: repository_directory} }
313313
cache.fetch_commit(commit_ref, repository_directory)

0 commit comments

Comments
 (0)