Re: [PATCHv2 6/6] t5543-atomic-push.sh: add basic tests for atomic pushes
- From
Stefan Beller <sbeller@google.com>
- Date
- Dec 16, 2014, 19:57 UTC
- Message-ID
- <CAGZ79kZnGKNTpRZndgG_CjAC9gqafGXoq8rFOWuHZkaqY_LK7w@mail.gmail.com>
- In-Reply-To
- <xmqqoar39y3l.fsf@gitster.dls.corp.google.com>
On Tue, Dec 16, 2014 at 11:46 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> > Seeing that all callers of test_ref_upstream computes $2 as > > git -C workbench rev-parse --verify <something> >
Only in the first tests, where this should be the case after push. In the failure tests, we go with HEAD@{N} which needs to be computed inside the workbench repo.
Alternatively we could check if the reflog of upstream has a certain number of entries which would indicate the push was not recorded (i.e. not performed?)
I think we should keep it similar to this one.