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

hub sync crashes if branch disappears during iteration #1369

Open
ilovezfs opened this issue Jan 2, 2017 · 2 comments
Open

hub sync crashes if branch disappears during iteration #1369

ilovezfs opened this issue Jan 2, 2017 · 2 comments
Labels

Comments

@ilovezfs
Copy link

ilovezfs commented Jan 2, 2017

Running hub sync, I see

warning: `gssdp-0.14.15' seems to contain unpushed commits

Once hub sync completes, I kick it off again. Before it gets to gssdp-0.14.15, while it's listing other branches with unpushed commits, in another shell I delete gssdp-0.14.15:

$ git branch -D gssdp-0.14.15
Deleted branch gssdp-0.14.15 (was 265d3fc8da).

At that point, when hub sync reaches gssdp-0.14.5 in its iteration, it crashes:

...
warning: `googler-2.5.1' seems to contain unpushed commits
warning: `gosu-1.13.5' seems to contain unpushed commits
warning: `gpac-0.6.1' seems to contain unpushed commits
warning: `gputils-1.4.2-1' seems to contain unpushed commits
exit status 128

So it may benefit from sort of locking or at least shouldn't assume the branch will still exist when it gets to it.

@mislav
Copy link
Owner

mislav commented Jan 4, 2017

Interesting; thanks for reporting this. Yes, I think hub should just ignore a branch that was removed since the sync operation was started.

@marandaneto
Copy link

+1 on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants