From c943b30c6609b758ab903af3e4d964dee4828d25 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 15 May 2022 15:39:08 +0530 Subject: [PATCH] fix: allow bench init with git tags --- bench/utils/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bench/utils/__init__.py b/bench/utils/__init__.py index d0bb0383..613a1b2d 100644 --- a/bench/utils/__init__.py +++ b/bench/utils/__init__.py @@ -74,6 +74,15 @@ def is_valid_frappe_branch(frappe_path:str, frappe_branch:str): frappe_branch, ), encoding="UTF-8", + ) or subprocess.check_output( + ( + "git", + "ls-remote", + "--tags", + frappe_path, + frappe_branch, + ), + encoding="UTF-8", ) if not ret: raise InvalidRemoteException(