Debian Codegraph @

examples/test_git-annex-remote-directory

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # Test script to drive the example external remote
3
4 set -eu -o pipefail -x
5
6 cd $(dirnamescip-shell system . . dirname. "$0")
7
8 export PATH=$PWD:$PATH
9
10 git-annex-remote-directory < /dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. VERSION
11
12 TMP="$(mktempscip-shell system . . mktemp. -d "${TMPDIR:-/tmp}/gar-XXXXXXX")"
13 # so there is no global git config side-effects
14 export HOME="$TMP"
15
16 REMOTE_DIR="$TMP/remote"
17 REPO_DIR="$TMP/repo"
18 mkdirscip-shell system . . mkdir. -p "$REMOTE_DIR"
19 mkdirscip-shell system . . mkdir. -p "$REPO_DIR"
20
21 cd "$REPO_DIR"
22 gitscip-shell system . . git. init
23 gitscip-shell system . . git. config user.email "[email protected]"
24 gitscip-shell system . . git. config user.name "Some User"
25 gitscip-shell system . . git. annex init
26 gitscip-shell system . . git. annex initremote --verbose --debug directory_remote type=external externaltype=directory encryption=none directory=$REMOTE_DIR
27 gitscip-shell system . . git. annex testremote --verbose --debug directory_remote 2>&1 | tailscip-shell system . . tail. -n 1000