Debian Codegraph @

spec/mspec/tool/pull-latest-mspec-spec

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Assumes all commits have been synchronized to https://github.com/ruby/spec
4 # See spec/mspec/tool/sync/sync-rubyspec.rb
5
6 function syncscip-shell shell shell-project 0.0.0 sync(). {
7 dir="$1"
8 repo="$2"
9 short_repo_name="ruby/$(basenamescip-shell system . . basename. "$repo" .git)"
10
11 rmscip-shell system . . rm. -rf "$dir"
12 gitscip-shell system . . git. clone --depth 1 "$repo" "$dir"
13 commit=$(gitscip-shell system . . git. -C "$dir" log -n 1 --format='%h')
14 rmscip-shell system . . rm. -rf "$dir/.git"
15
16 # Remove CI files to avoid confusion
17 rmscip-shell system . . rm. -f "$dir/appveyor.yml"
18 rmscip-shell system . . rm. -f "$dir/.travis.yml"
19 rmscip-shell system . . rm. -rf "$dir/.github"
20
21 gitscip-shell system . . git. add "$dir"
22 gitscip-shell system . . git. commit -m "Update to ${short_repo_name}@${commit}"
23 }
24
25 syncscip-shell shell shell-project 0.0.0 sync(). spec/mspec https://github.com/ruby/mspec.git
26 syncscip-shell shell shell-project 0.0.0 sync(). spec/ruby https://github.com/ruby/spec.git