diff options
Diffstat (limited to 't/chainlint/function.expect')
-rw-r--r-- | t/chainlint/function.expect | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/chainlint/function.expect b/t/chainlint/function.expect new file mode 100644 index 0000000000..9e46a3554a --- /dev/null +++ b/t/chainlint/function.expect @@ -0,0 +1,11 @@ +2 sha1_file() { +3 echo "$*" | sed "s#..#.git/objects/&/#" +4 } && +5 +6 remove_object() { +7 file=$(sha1_file "$*") && +8 test -e "$file" ?!LINT: missing '&&'?! +9 rm -f "$file" +10 } ?!LINT: missing '&&'?! +11 +12 sha1_file arg && remove_object arg |