Fix bug in GlobalCacheTracker::git_checkout_all

This fixes a bug in the `GlobalCacheTracker::git_checkout_all` function
which was using the wrong SQL column name. This function belongs to the
set of of functions only used for testing, and this particular function
was not yet used.
This commit is contained in:
Eric Huss 2024-02-20 12:32:23 -08:00
parent 762c7d8a00
commit 7e5ab66784

View File

@ -499,7 +499,7 @@ impl GlobalCacheTracker {
let mut stmt = self.conn.prepare_cached(
"SELECT git_db.name, git_checkout.name, git_checkout.size, git_checkout.timestamp
FROM git_db, git_checkout
WHERE git_checkout.registry_id = git_db.id",
WHERE git_checkout.git_id = git_db.id",
)?;
let rows = stmt
.query_map([], |row| {