add UUID to GITBUNDLE

The UUID is included in the GITMANIFEST in order to allow a single
key/value store to be used to store several special remotes, without any
namespacing. In that situation though, if the same ref is pushed to two
special remotes, it will result in git bundles with the same content.

Which is ok, until a re-push happens to one of the special remote.
At that point, the old git bundle will be deleted. That will prevent
fetching it from the other special remote, where the re-push has not
happened.

Adding the UUID avoids this problem.
This commit is contained in:
Joey Hess 2024-05-06 12:51:44 -04:00
parent a8cef2bf85
commit 0be9f7a2c6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -3,7 +3,7 @@ This adds two new object types to git-annex, GITMANIFEST and a GITBUNDLE.
GITMANIFEST--$UUID is the manifest for a git repository stored in the
git-annex repository with that UUID.
GITBUNDLE--sha256 is a git bundle.
GITBUNDLE--$UUID--sha256 is a git bundle.
# format of the manifest file