Merge pull request 'fix: Detached HEAD has no ref' (#28) from bugfix/git into master
Reviewed-on: https://hattori.ztsh.eu/iac/karl/pulls/28
This commit is contained in:
commit
4a7f5e2339
1 changed files with 0 additions and 2 deletions
|
|
@ -9,8 +9,6 @@ class GitService:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._settings = get_settings()
|
self._settings = get_settings()
|
||||||
self._repo = self._check_preconditions(self._settings.git)
|
self._repo = self._check_preconditions(self._settings.git)
|
||||||
if self._repo.head.ref.name != self._settings.git.branch:
|
|
||||||
self._repo.git.checkout(self._settings.git.branch)
|
|
||||||
self._origin: Remote = self._repo.remotes.origin
|
self._origin: Remote = self._repo.remotes.origin
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue