git-remote-dropbox 2.1.0__tar.gz → 2.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/PKG-INFO +2 -2
  2. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/README.md +1 -1
  3. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/__init__.py +1 -1
  4. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/helper.py +4 -2
  5. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/.editorconfig +0 -0
  6. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/.github/workflows/ci.yml +0 -0
  7. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/.gitignore +0 -0
  8. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/CONTRIBUTING.md +0 -0
  9. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/DESIGN.md +0 -0
  10. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/DEVELOPMENT.md +0 -0
  11. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/LICENSE.md +0 -0
  12. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/pyproject.toml +0 -0
  13. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/cli/__init__.py +0 -0
  14. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/cli/common.py +0 -0
  15. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/cli/helper.py +0 -0
  16. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/cli/manage.py +0 -0
  17. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/constants.py +0 -0
  18. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/git.py +0 -0
  19. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/src/git_remote_dropbox/util.py +0 -0
  20. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/tests/.gitignore +0 -0
  21. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/tests/dropbox_delete.py +0 -0
  22. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/tests/test-lib.sh +0 -0
  23. {git_remote_dropbox-2.1.0 → git_remote_dropbox-2.1.1}/tests/test.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-remote-dropbox
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: A transparent bidirectional bridge between Git and Dropbox
5
5
  Project-URL: homepage, https://github.com/anishathalye/git-remote-dropbox
6
6
  Project-URL: repository, https://github.com/anishathalye/git-remote-dropbox.git
@@ -70,7 +70,7 @@ and log in to your Dropbox account.
70
70
  If you'd like to scope the access to an [app
71
71
  folder](https://help.dropbox.com/integrations/third-party-apps), you can run
72
72
  `git dropbox login --app-folder`. With this setup, paths will be rooted in a
73
- "git-remote-dropbox repos" [app folder in your Dropbox
73
+ "git-remote-dropbox-repos" [app folder in your Dropbox
74
74
  account](https://www.dropbox.com/home/Apps). Note that app folders [**cannot be
75
75
  shared**](https://community.dropbox.com/en/discussion/38534/sharing-of-folders-inside-the-apps-folder).
76
76
 
@@ -51,7 +51,7 @@ and log in to your Dropbox account.
51
51
  If you'd like to scope the access to an [app
52
52
  folder](https://help.dropbox.com/integrations/third-party-apps), you can run
53
53
  `git dropbox login --app-folder`. With this setup, paths will be rooted in a
54
- "git-remote-dropbox repos" [app folder in your Dropbox
54
+ "git-remote-dropbox-repos" [app folder in your Dropbox
55
55
  account](https://www.dropbox.com/home/Apps). Note that app folders [**cannot be
56
56
  shared**](https://community.dropbox.com/en/discussion/38534/sharing-of-folders-inside-the-apps-folder).
57
57
 
@@ -18,4 +18,4 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
  # SOFTWARE.
20
20
 
21
- __version__ = "2.1.0"
21
+ __version__ = "2.1.1"
@@ -203,10 +203,13 @@ class Helper:
203
203
  if src.startswith("+"):
204
204
  src = src[1:]
205
205
  force = True
206
+ # resolve the source ref exactly once: the local ref may move while
207
+ # objects are uploading, and we must only publish what we uploaded
208
+ sha = git.ref_value(src)
206
209
  present = [self._refs[name][1] for name in self._refs]
207
210
  present.extend(self._pushed.values())
208
211
  # before updating the ref, write all objects that are referenced
209
- objects = git.list_objects(src, present)
212
+ objects = git.list_objects(sha, present)
210
213
  try:
211
214
  # upload objects in parallel
212
215
  pool = multiprocessing.pool.ThreadPool(processes=self._processes)
@@ -224,7 +227,6 @@ class Helper:
224
227
  if self.verbosity >= Level.DEBUG:
225
228
  raise # re-raise exception so it prints out a stack trace
226
229
  self._fatal("exception while writing objects (run with -v for details)\n")
227
- sha = git.ref_value(src)
228
230
  error = self._write_ref(sha, dst, force=force)
229
231
  if error is None:
230
232
  _write(f"ok {dst}")