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

git sync failed #63

Closed
neilmiddleton opened this issue May 4, 2012 · 5 comments
Closed

git sync failed #63

neilmiddleton opened this issue May 4, 2012 · 5 comments

Comments

@neilmiddleton
Copy link

No real idea as to why but the trace is here:

Pushing commits to the server.
Restoring local changes.
Traceback (most recent call last):
File "/usr/local/bin/legit", line 9, in
load_entry_point('legit==0.1.1', 'console_scripts', 'legit')()
File "/Library/Python/2.7/site-packages/legit/cli.py", line 45, in main
cmd_map.get(arg).call(args)
File "/Library/Python/2.7/site-packages/legit/cli.py", line 162, in cmd_sync
status_log(unstash_it, 'Restoring local changes.', sync=True)
File "/Library/Python/2.7/site-packages/legit/cli.py", line 80, in status_log
log = func(_args, *_kwargs)
File "/Library/Python/2.7/site-packages/legit/scm.py", line 99, in unstash_it
'stash', 'pop', 'stash@{{0}}'.format(stash_index)])
File "/Library/Python/2.7/site-packages/git/cmd.py", line 377, in execute
raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git stash pop stash@{0}' returned exit status 1:

@kennethreitz
Copy link
Collaborator

That means there was a merge conflict when restoring the stashed content. I need to catch that and produce some pretty output saying what happened / how to fix it.

@neilmiddleton
Copy link
Author

Something else that will need some tweaking is that when this occurs you can be left with a stash - the problem then lies further down the line when later syncs try to pop the stash which in itself can cause merging problems. Currently the only way round this is to drop the stash manually.

@cormamax
Copy link

So how do we fix this? I've tried to overriding my local code with what is in the repository, and git sync still gives me the error.

@AndrewKL
Copy link

AndrewKL commented Dec 5, 2012

this is rather annoying

@weakish
Copy link
Collaborator

weakish commented Jul 20, 2017

duplicated by #35

@weakish weakish closed this as completed Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants