git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Mikhail Strelnikov <mikhail.strelnikov@gmail.com>
To: git@vger.kernel.org
Subject: Multiple pushurls, different 'objects\info\packs'
Date: Tue, 21 Apr 2020 21:07:42 +0300	[thread overview]
Message-ID: <CAAihzVJTN5V3o_aFeUuJH_8+nqZrKHJww3vFQ9K5W0DtbeM14w@mail.gmail.com> (raw)

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.

             reply	other threads:[~2020-04-21 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 18:07 Mikhail Strelnikov [this message]
2020-04-22  3:14 ` Multiple pushurls, different 'objects\info\packs' brian m. carlson
2020-04-22 17:45   ` Mikhail Strelnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAihzVJTN5V3o_aFeUuJH_8+nqZrKHJww3vFQ9K5W0DtbeM14w@mail.gmail.com \
    --to=mikhail.strelnikov@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).