Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-a committed Oct 29, 2018
1 parent de75bfc commit f3bd089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githubcommit/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ def put(self):
# create or switch to remote
try:
remote = repo.create_remote(git_remote, git_url)
print_err(remote.pull())
except GitCommandError:
print_err("Remote {} already exists...".format(git_remote))
remote = repo.remote(git_remote)

# push changes
try:
remote.pull()
pushed = remote.push(git_branch)
assert len(pushed) > 0
assert pushed[0].flags in [git.remote.PushInfo.UP_TO_DATE, git.remote.PushInfo.FAST_FORWARD,
Expand Down

0 comments on commit f3bd089

Please sign in to comment.