Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry mechanism for failed push [$15 awarded] #201

Closed
vtemian opened this issue Aug 28, 2015 · 1 comment
Closed

Retry mechanism for failed push [$15 awarded] #201

vtemian opened this issue Aug 28, 2015 · 1 comment
Assignees

Comments

@vtemian
Copy link
Contributor

vtemian commented Aug 28, 2015

If the push failed because some changes from remote were not fetched, we should try to fetch, merge them and in the end, retry the push.

The $15 bounty on this issue has been claimed at Bountysource.

@vtemian vtemian changed the title Retry mechanism for failed push Retry mechanism for failed push [$15] Aug 28, 2015
@vtemian vtemian added the bounty label Aug 28, 2015
@pdobrescu pdobrescu added the must label Oct 22, 2015
@vtemian vtemian self-assigned this Dec 30, 2015
@vtemian vtemian assigned krodyrobi and unassigned vtemian Jan 11, 2016
@krodyrobi
Copy link
Contributor

Sample log

Jan 27 15:38:04 sftp-5 GitFS:  on /home/dragosroua/connecthubro [12571]: SyncWorker: Push failed Traceback (most recent call last):   File "/root/.pex/install/gitfs-0.3.3-py2-none-any.whl.9e0c81d540e5018c3766cced5c105864e35d8bd4/gitfs-0.3.3-py2-none-any.whl/gitfs/worker/sync.py", line 122, in sync     self.repository.push(self.upstream, self.branch)   File "/root/.pex/install/gitfs-0.3.3-py2-none-any.whl.9e0c81d540e5018c3766cced5c105864e35d8bd4/gitfs-0.3.3-py2-none-any.whl/gitfs/repository.py", line 119, in push     remote.push(["refs/heads/%s" % (branch)])   File "/root/.pex/install/pygit2-0.22.0-cp27-none-linux_x86_64.whl.6071446922e1dec09888986ed337431aa6163780/pygit2-0.22.0-cp27-none-linux_x86_64.whl/pygit2/remote.py", line 322, in push     check_error(err)   File "/root/.pex/install/pygit2-0.22.0-cp27-none-linux_x86_64.whl.6071446922e1dec09888986ed337431aa6163780/pygit2-0.22.0-cp27-none-linux_x86_64.whl/pygit2/errors.py", line 64, in check_error     raise GitError(message) GitError: Cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.

vtemian added a commit that referenced this issue Feb 10, 2016
@zalmanu zalmanu reopened this Feb 10, 2016
@vtemian vtemian closed this as completed Feb 11, 2016
@vtemian vtemian removed the on-stage label Feb 11, 2016
@zalmanu zalmanu reopened this Feb 15, 2016
@vtemian vtemian changed the title Retry mechanism for failed push [$15] Retry mechanism for failed push [$15 awarded] Feb 15, 2016
@vtemian vtemian closed this as completed Apr 5, 2016
@vtemian vtemian removed the on-stage label Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants