Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f233adfd1d | ||
|
|
0cdc01291c |
+2
-2
@@ -53,7 +53,7 @@ class Git:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_current_tag():
|
def get_current_tag():
|
||||||
return Git("describe", abbrev="0", tags=True).firstline(check=False)
|
return Git("describe", abbrev="0", tags=True).firstline(check=False, print="Obteniendo tag actual")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_first_fork_point(branch: str, env: str):
|
def get_first_fork_point(branch: str, env: str):
|
||||||
@@ -117,7 +117,7 @@ class Git:
|
|||||||
|
|
||||||
return lines if not strip else list(map(lambda l: l.strip(), lines))
|
return lines if not strip else list(map(lambda l: l.strip(), lines))
|
||||||
|
|
||||||
def firstline(self, **kwargs: bool):
|
def firstline(self, **kwargs):
|
||||||
lines = self.lines(**kwargs)
|
lines = self.lines(**kwargs)
|
||||||
|
|
||||||
return lines[0] if lines else ""
|
return lines[0] if lines else ""
|
||||||
|
|||||||
Reference in New Issue
Block a user