diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-05-11 17:25:03 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-05-11 11:50:16 -0700 |
| commit | 433efcad9d3c0c0b30f01b3de2cfa51a854befb3 (patch) | |
| tree | 4623b8c61b7b4a573cca5967b0ebe62accae2396 /contrib/persistent-https | |
| parent | Git 2.4 (diff) | |
| download | git-433efcad9d3c0c0b30f01b3de2cfa51a854befb3.tar.gz git-433efcad9d3c0c0b30f01b3de2cfa51a854befb3.zip | |
t1404: new tests of ref D/F conflicts within transactions
Add some tests of reference D/F conflicts (by which I mean the fact
that references like "refs/foo" and "refs/foo/bar" are not allowed to
coexist) in the context of reference transactions.
The test of creating two conflicting references in the same
transaction fails, leaving the transaction half-completed. This will
be fixed later in this patch series.
Please note that the error messages emitted in the case of conflicts
are not very user-friendly. In particular, when the conflicts involve
loose references, then the errors are reported as
error: there are still refs under 'refs/foo'
fatal: Cannot lock the ref 'refs/foo'.
or
error: unable to resolve reference refs/foo/bar: Not a directory
fatal: Cannot lock the ref 'refs/foo/bar'.
This is because lock_ref_sha1_basic() fails while trying to lock the
new reference, before it even gets to the is_refname_available()
check. This situation will also be improved later in this patch
series.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
