Skip to content

Commit

Permalink
[docer] removed the branch update method (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee authored Aug 18, 2023
1 parent 5134255 commit e62466b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion doc-build/docer/core/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setup(self):
self.cache_directory.mkdir(exist_ok=True, parents=True)

if self.git_client.repo_directory.exists():
self.git_client.merge_origin_main()
pass
else:
self.git_client.clone()

Expand Down
6 changes: 0 additions & 6 deletions doc-build/docer/core/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ def __init__(self, root_directory: str, owner: str, project: str):
self.git_url = f'https://github.com/{owner}/{project}.git'
self.repo_directory = self.root_directory.joinpath(project)

def merge_origin_main(self):
with self._change_dir(self.repo_directory):
subprocess.check_call(['git', 'checkout', 'main'])
subprocess.check_call(['git', 'fetch', 'origin'])
subprocess.check_call(['git', 'merge', 'origin/main'])

def clone(self):
with self._change_dir(self.root_directory):
subprocess.check_call(['git', 'clone', self.git_url])
Expand Down

0 comments on commit e62466b

Please sign in to comment.