git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Multiple pushurls, different 'objects\info\packs'

From
MSMikhail Strelnikov <mikhail.strelnikov@gmail.com>
Date
Apr 21, 2020, 18:07 UTC
Message-ID
<CAAihzVJTN5V3o_aFeUuJH_8+nqZrKHJww3vFQ9K5W0DtbeM14w@mail.gmail.com>
Hi,
I have a repo with two pushurls configured like this:

C:\folder\1>git init --bare Initialized empty Git repository in C:/folder/1/

C:\folder\2>git init --bare Initialized empty Git repository in C:/folder/2/

C:\folder\w>git init Initialized empty Git repository in C:/folder/w/.git/

C:\folder\w>git add work.txt

C:\folder\w>git commit -m "Initial commit" [master (root-commit) 1b314f3] Initial commit 1 file changed, 1 insertion(+) create mode 100644 work.txt

C:\folder\w>git remote add origin C:\folder\1
C:\folder\w>git remote set-url origin --push --add C:\folder\1
C:\folder\w>git remote set-url origin --push --add C:\folder\2
C:\folder\w>git push --set-upstream origin master

I would expect those two folders (C:\folder\1 and C:\folder\2) to contain exactly the same bytes. And they did for quite some time. But now there is a difference in 'objects\info\packs' (and some of objects\pack\pack-*.idx/pack are also different).

(all the commits are the same in both and all my data is also the same and 'fast-export --all' yields the same result)

I'd like to know what might have caused this nondeterminism and if there is something to do to prevent that.

(my current version of git is 2.25.0.windows.1, but I guess this divergence happened several versions back)

Thanks.
Next: brian m. carlson
Message 1 of 3 in “Multiple pushurls, different 'objects\info\packs'”
  1. Mikhail StrelnikovApr 21, 2020
  2. brian m. carlsonApr 22, 2020
  3. Mikhail StrelnikovApr 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.