Re: Reading remote reflogs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 29, 2013, 22:45 UTC
- Message-ID
- <7vd2uhn7u1.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1364595928.30202.4.camel@localhost>
Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:
> ... Mirrored repositories don't > maintain a reflog, even with core.logAllRefUpdates = true,...
Are you sure about this? When log_all_ref_updates is not set, by default we do not log for bare repositories, but other than that, we do not do anything special with respect to reflogs.
$ (cd .. && git clone --no-local --mirror git.git victim)
$ git checkout next
$ EDITOR=: git commit --amend
$ cd ../victim
$ git config core.logallrefupdates true
$ git fetch
$ find logs
logs
logs/HEAD
logs/refs
logs/refs/heads
logs/refs/heads/nextIt seems to record how a branch at its origin was updated just fine, at least to me.