Skip to content

Commit fbb0cd5

Browse files
committed
Create branch if not exist instead of error
1 parent 6073003 commit fbb0cd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@
7272
git_repo = git.Repo.clone_from(
7373
'https://{}@github.com/{}.git'.format(github_token, github_repo),
7474
github_slug,
75-
branch=gh_branch,
7675
)
7776

77+
git_repo.git.branch(gh_branch)
78+
7879
# Generate metadata
7980
deb_file_handle = DebFile(filename=deb_file_path)
8081
deb_file_control = deb_file_handle.debcontrol()

0 commit comments

Comments
 (0)