Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lookml/lib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,9 @@ def clone(self, repoLocation):
self.absoluteOutputPath, gitDir=False)
return self.pull()

def checkout(self, branch='master'):
return self.call(' checkout ' + branch, gitDir=False)

def add(self, path='.'):
return self.call(' add ' + path, gitDir=False)

Expand Down Expand Up @@ -804,6 +807,7 @@ def __init__(
deployMessage=self._commit_message
)
self._git.clone(self._git_url)
self._git.checkout(self._branch)
self._build_index()

# shell
Expand Down