Skip to content

Commit 7d8c46d

Browse files
committed
Add set upstream to branch push
1 parent b9679bf commit 7d8c46d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entrypoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
git_repo.index.commit(
177177
'[apt-action] Update apt repo\n\n\napt-action-metadata{}'.format(current_metadata_str)
178178
)
179-
origin = git_repo.remote()
180-
origin.push()
179+
git_repo.git.push('--set-upstream', 'origin', gh_branch)
181180

182181
logging.info('-- Done saving changes --')

0 commit comments

Comments
 (0)