mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 08:16:28 +00:00
fix: Handle tag fetching failures of disk mounted App inits
This commit is contained in:
parent
338df66e48
commit
117d456b16
@ -113,6 +113,10 @@ class AppMeta:
|
|||||||
self.tag = self.branch = self.git_repo.active_branch.name
|
self.tag = self.branch = self.git_repo.active_branch.name
|
||||||
except IndexError:
|
except IndexError:
|
||||||
self.org, self.repo, self.tag = os.path.split(self.mount_path)[-2:] + (self.branch,)
|
self.org, self.repo, self.tag = os.path.split(self.mount_path)[-2:] + (self.branch,)
|
||||||
|
except TypeError:
|
||||||
|
# faced a "a detached symbolic reference as it points" in case you're in the middle of
|
||||||
|
# some git shenanigans
|
||||||
|
self.tag = self.branch = None
|
||||||
|
|
||||||
def _setup_details_from_name_tag(self):
|
def _setup_details_from_name_tag(self):
|
||||||
self.org, self.repo, self.tag = fetch_details_from_tag(self.name)
|
self.org, self.repo, self.tag = fetch_details_from_tag(self.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user