blob a897ed81082789bb58eb43af0fd14504b45975d2 1169 bytes (raw)
name: t/t2205-add-no-filters.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
43
44
45
46
| | #!/bin/sh
test_description='git add --no-filters
This test creates a file and a corresponding .gitattributes setup
to ensure the file undergoes a conversion when committed or checked
out.
It then verifies that the conversion happens by default, but does not
when --no-filters is used.'
. ./test-lib.sh
test_expect_success setup '
echo "* eol=crlf" > .gitattributes &&
git add .gitattributes &&
git commit -m initial &&
printf "test\r\ntest\r\n" > test
'
test_expect_success 'add without --no-filters' '
original="$(git hash-object --stdin < test)" &&
converted="$(git hash-object test)" &&
git add test &&
git ls-files -s > actual &&
cat > expected <<-EOF &&
100644 $(git hash-object .gitattributes) 0 .gitattributes
100644 $converted 0 test
EOF
test_cmp expected actual
'
test_expect_success 'add with --no-filters' '
git rm -f --cached test &&
original="$(git hash-object --stdin < test)" &&
converted="$(git hash-object test)" &&
git add --no-filters test &&
git ls-files -s > actual &&
cat > expected <<-EOF &&
100644 $(git hash-object .gitattributes) 0 .gitattributes
100644 $original 0 test
EOF
test_cmp expected actual
'
test_done
|
debug log:
solving a897ed810827 ...
found a897ed810827 in https://public-inbox.org/git/cf8eb886a1e29c94ee5ec070fb380d6bc36f40db.1613758333.git.gitgitgadget@gmail.com/ ||
https://public-inbox.org/git/1d84503fff481910a4ae6eb86fa6f77afc2b3d95.1613840865.git.gitgitgadget@gmail.com/
applying [1/1] https://public-inbox.org/git/cf8eb886a1e29c94ee5ec070fb380d6bc36f40db.1613758333.git.gitgitgadget@gmail.com/
diff --git a/t/t2205-add-no-filters.sh b/t/t2205-add-no-filters.sh
new file mode 100755
index 000000000000..a897ed810827
Checking patch t/t2205-add-no-filters.sh...
Applied patch t/t2205-add-no-filters.sh cleanly.
skipping https://public-inbox.org/git/1d84503fff481910a4ae6eb86fa6f77afc2b3d95.1613840865.git.gitgitgadget@gmail.com/ for a897ed810827
index at:
100755 a897ed81082789bb58eb43af0fd14504b45975d2 t/t2205-add-no-filters.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).