Skip to content

Commit

Permalink
NOT FOR MERGE gen-content.py takes a branch ref
Browse files Browse the repository at this point in the history
Let's add a branch ref for external-sources (to temporarily enable
previews of fluxcd/community#396)

Signed-off-by: Kingdon Barrett <kingdon+github@tuesdaystudios.com>
  • Loading branch information
kingdonb committed May 2, 2024
1 parent 130926a commit 005d6a1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions hack/gen-content.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,14 @@ def __del__(self):
shutil.rmtree(self.temp_dir)

def clone_repo(self):
subprocess.call([
'git', 'clone', '--depth=1', '-q',
self.gh_source, self.dest])
if self.gh_source == 'https://github.com/fluxcd/community':
subprocess.call([
'git', 'clone', '--depth=1', '-q',
self.gh_source, self.dest, '--branch', 'add-calendar-table'])
else:
subprocess.call([
'git', 'clone', '--depth=1', '-q',
self.gh_source, self.dest])

def rewrite_links(self, out_file):
'''
Expand Down

0 comments on commit 005d6a1

Please sign in to comment.