Debian Codegraph @

t/t-push-file-with-branch-name.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 begin_test "push a file with the same name as a branch"
6 (
7 set -e
8
9 reponame="$(basenamescip-shell system . . basename. "$0" ".sh")"
10 setup_remote_repo "$reponame"
11 clone_repo "$reponame" repo
12
13 gitscip-shell system . . git. lfs track "main"
14 echoscip-shell system . . echo. "main" > main
15 gitscip-shell system . . git. add .gitattributes main
16 gitscip-shell system . . git. commit -m "add main"
17
18 gitscip-shell system . . git. lfs push --all origin main 2>&1 | teescip-shell system . . tee. push.log
19 grepscip-shell system . . grep. "Uploading LFS objects: 100% (1/1), [0-9] B" push.log
20 )
21 end_test