]> git.ipfire.org Git - thirdparty/git.git/blob - t/chainlint/function.test
Merge branch 'jk/clone-allow-bare-and-o-together'
[thirdparty/git.git] / t / chainlint / function.test
1 # LINT: "()" in function definition not mistaken for subshell
2 sha1_file() {
3 echo "$*" | sed "s#..#.git/objects/&/#"
4 } &&
5
6 # LINT: broken &&-chain in function and after function
7 remove_object() {
8 file=$(sha1_file "$*") &&
9 test -e "$file"
10 rm -f "$file"
11 }
12
13 sha1_file arg && remove_object arg