aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-22 14:31:57 -0700
committerJunio C Hamano <gitster@pobox.com>2008-06-22 14:31:57 -0700
commit66915b5d7cc9b66bf8c452bb62c67da371c21d90 (patch)
tree44a4f9b55c19a4c7d5334f736d0276481a8aae74 /t
parent5389db544defc9cd9415ffb9d8070c3e179610f2 (diff)
parent3fe8dce6fc5b1d0bffba8fdb4e075fcd16cf5619 (diff)
downloadgit-66915b5d7cc9b66bf8c452bb62c67da371c21d90.tar.gz
git-66915b5d7cc9b66bf8c452bb62c67da371c21d90.tar.xz
Merge branch 'kh/update-ref'
* kh/update-ref: Make old sha1 optional with git update-ref -d Clean up builtin-update-ref's option parsing
Diffstat (limited to 't')
-rwxr-xr-xt/t1400-update-ref.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh
index b8b7ab410..f387d46f1 100755
--- a/t/t1400-update-ref.sh
+++ b/t/t1400-update-ref.sh
@@ -42,6 +42,14 @@ test_expect_success "delete $m" '
'
rm -f .git/$m
+test_expect_success "delete $m without oldvalue verification" "
+ git update-ref $m $A &&
+ test $A = \$(cat .git/$m) &&
+ git update-ref -d $m &&
+ ! test -f .git/$m
+"
+rm -f .git/$m
+
test_expect_success \
"fail to create $n" \
"touch .git/$n_dir