Fix #7146
When fetching a non-local git repo by ref (and no rev), don't consider unrelated cached revs for the same repository.
This commit is contained in:
@@ -485,6 +485,10 @@ struct GitInputScheme : InputScheme
|
||||
}
|
||||
input.attrs.insert_or_assign("ref", *head);
|
||||
unlockedAttrs.insert_or_assign("ref", *head);
|
||||
} else {
|
||||
if (!input.getRev()) {
|
||||
unlockedAttrs.insert_or_assign("ref", input.getRef().value());
|
||||
}
|
||||
}
|
||||
|
||||
if (auto res = getCache()->lookup(store, unlockedAttrs)) {
|
||||
|
||||
Reference in New Issue
Block a user