Skip to content

Commit

Permalink
git_tag can sometimes erroneously be set to a rev try git_rev if avai…
Browse files Browse the repository at this point in the history
…lable

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
  • Loading branch information
hikinggrass authored and andistorm committed Jul 11, 2023
1 parent d289097 commit fde385e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dependency_manager/src/edm_tool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
"""Everest Dependency Manager."""
from edm_tool import edm
__version__ = "0.5.3"
__version__ = "0.5.4"


def get_parser():
Expand Down
4 changes: 4 additions & 0 deletions dependency_manager/src/edm_tool/edm.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,10 @@ def clone_dependency_repo(git: str, git_tag: str, checkout_dir: Path) -> None:
git_rev = git_tag
git_tag = None
clone_dependency_repo(git, git_tag, checkout_dir)
elif git_rev and git_tag:
log.info(f"Both git_rev and git_tag given, but git_tag \"{git_tag}\" might be a git_rev, trying to checkout git_rev \"{git_rev}\" instead.")
git_tag = None
clone_dependency_repo(git, git_tag, checkout_dir)
else:
raise e

Expand Down

0 comments on commit fde385e

Please sign in to comment.