Skip to content

Commit 7e5ab66

Browse files
committed
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.
1 parent 762c7d8 commit 7e5ab66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/global_cache_tracker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ impl GlobalCacheTracker {
499499
let mut stmt = self.conn.prepare_cached(
500500
"SELECT git_db.name, git_checkout.name, git_checkout.size, git_checkout.timestamp
501501
FROM git_db, git_checkout
502-
WHERE git_checkout.registry_id = git_db.id",
502+
WHERE git_checkout.git_id = git_db.id",
503503
)?;
504504
let rows = stmt
505505
.query_map([], |row| {

0 commit comments

Comments
 (0)