Skip to content

Commit

Permalink
repo_utils.ls_remote: Memoize
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Nov 22, 2023
1 parent 3013f4a commit cd8445f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions teuthology/repo_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import functools
import logging
import os
import re
Expand Down Expand Up @@ -56,6 +57,7 @@ def build_git_url(project, project_owner='ceph'):
return url_templ.format(project_owner=project_owner, project=project)


@functools.cache
def ls_remote(url, ref):
"""
Return the current sha1 for a given repository and ref
Expand Down

0 comments on commit cd8445f

Please sign in to comment.