Debian Codegraph @

t/t-unusual-filenames.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh"
4
5 reponame="$(basenamescip-shell system . . basename. "$0" ".sh")"
6
7 # Leading dashes may be misinterpreted as flags if commands don't use "--"
8 # before paths.
9 name1='-dash.dat'
10 contents1='leading dash'
11
12 begin_test "push unusually named files"
13 (
14 set -e
15
16 setup_remote_repo "$reponame"
17
18 clone_repo "$reponame" repo
19
20 gitscip-shell system . . git. lfs track "*.dat"
21 echoscip-shell system . . echo. "$content1" > "$name1"
22
23 gitscip-shell system . . git. add -- .gitattributes *.dat
24 gitscip-shell system . . git. commit -m "add files"
25
26 gitscip-shell system . . git. push origin main | teescip-shell system . . tee. push.log
27 grepscip-shell system . . grep. "Uploading LFS objects: 100% (1/1), 1 B" push.log
28 )
29 end_test