blob 8792e74682e2c3fceae6820bd0a3a8dd7420c137 645 bytes (raw)
name: t/t5405-send-pack-rewind.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| | #!/bin/sh
test_description='forced push to replace commit we do not have'
. ./test-lib.sh
test_expect_success setup '
>file1 && git add file1 && test_tick &&
git commit -m Initial &&
git config receive.denyCurrentBranch warn &&
mkdir another && (
cd another &&
git init &&
git fetch --update-head-ok .. main:main
) &&
>file2 && git add file2 && test_tick &&
git commit -m Second
'
test_expect_success 'non forced push should die not segfault' '
(
cd another &&
test_must_fail git push .. main:main
)
'
test_expect_success 'forced push should succeed' '
(
cd another &&
git push .. +main:main
)
'
test_done
|
debug log:
solving 8792e74682 ...
found 8792e74682 in https://public-inbox.org/git/55b6c04fc0ed3bbdf7e94b955d94227260fe1330.1605221039.git.gitgitgadget@gmail.com/ ||
https://public-inbox.org/git/be29e0789259b6b4ac51bdd7432fce5cf7204bbd.1605629548.git.gitgitgadget@gmail.com/
found 235fb7686a in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 235fb7686ae0dec21e81b06dd0b220f0705a6b2e t/t5405-send-pack-rewind.sh
applying [1/1] https://public-inbox.org/git/55b6c04fc0ed3bbdf7e94b955d94227260fe1330.1605221039.git.gitgitgadget@gmail.com/
diff --git a/t/t5405-send-pack-rewind.sh b/t/t5405-send-pack-rewind.sh
index 235fb7686a..8792e74682 100755
Checking patch t/t5405-send-pack-rewind.sh...
Applied patch t/t5405-send-pack-rewind.sh cleanly.
skipping https://public-inbox.org/git/be29e0789259b6b4ac51bdd7432fce5cf7204bbd.1605629548.git.gitgitgadget@gmail.com/ for 8792e74682
index at:
100755 8792e74682e2c3fceae6820bd0a3a8dd7420c137 t/t5405-send-pack-rewind.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
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).