lionheart / git-bigstore

Bigstore is a Git extension that helps you track big files in your repositories.
Apache License 2.0
183 stars 28 forks source link

Exception during `git bigstore pull` #34

Closed jansel closed 7 years ago

jansel commented 7 years ago
...
  File "/usr/local/lib/python2.7/dist-packages/bigstore/bigstore.py", line 282, in pull
    g().notes("--ref=bigstore", "add", "-m", "bigstore")
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 450, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 902, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 695, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git notes --ref=bigstore add -m bigstore' returned with exit code 1
stderr: 'error: Cannot add notes. Found existing notes for object fc559df2dbc6a822d30b4a4ab498e3681ffe0155. Use '-f' to overwrite existing notes'
michaelweinstein commented 7 years ago

Did you ever figure this out? I'm getting the same error. When I try removing notes for named object, git tells me no note exists (and there shouldn't be any yet).

jansel commented 7 years ago

I believe this was fixed in #36 (it removes the offending line and merges it with an equivalent line that catches the exception).

Are you running the latest version? If so, post your stack trace.

michaelweinstein commented 7 years ago

Thanks so much. I'm not exactly sure how to check the version explicitly, I couldn't find info on the wiki? I installed bigstore through pip yesterday so I'm not sure if the latest version is updated there. I can post the stack trace if so though.

dlo commented 7 years ago

I'm checking right now, let me see what's currently up there and if @jansel's fix made it in.

michaelweinstein commented 7 years ago

Thanks so much for your help. Pip may not install or upgrade to the latest bigstore version, metadata.py seems to indicate 1.0.0

dlo commented 7 years ago

Looks like PyPi changed their package updating API. Hold tight while I tighten the screws…

dlo commented 7 years ago

Done!

michaelweinstein commented 7 years ago

Thanks so much, you're a life saver!