git_command: unify soft/hard versions with requirements.json
Use the requirements logic in the wrapper to load versions out of the requirements.json file to avoid duplicating them in git_command.py. Change-Id: Ib479049fc54ebc6f52c2c30d1315cf1734ff1990 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/415617 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
73356f1d5c
commit
4406642e20
4 changed files with 19 additions and 25 deletions
|
@ -18,8 +18,12 @@ import importlib.util
|
|||
import os
|
||||
|
||||
|
||||
def WrapperDir():
|
||||
return os.path.dirname(__file__)
|
||||
|
||||
|
||||
def WrapperPath():
|
||||
return os.path.join(os.path.dirname(__file__), "repo")
|
||||
return os.path.join(WrapperDir(), "repo")
|
||||
|
||||
|
||||
@functools.lru_cache(maxsize=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue