Expose repository variables to external commands
[tig.git] / test / status / repo-var-test
blobae311dc1dab0ba54e684f5d7c3213b25234f7af1
1 #!/bin/sh
3 . libtest.sh
4 . libgit.sh
6 steps "
7 :exec !assert-var '%(repo:head)' == master
8 :exec !assert-var '%(repo:head-id)' == feeb2dfd5e09e887e4b6c901e7d91a4c85a7831d
9 :exec !assert-var '%(repo:remote)' == origin/master
10 :exec !assert-var '%(repo:cdup)' == ../
11 :exec !assert-var '%(repo:prefix)' == repo-two-a/
12 :exec !assert-var '%(repo:git-dir)' == '$HOME/$work_dir/.git'
13 :exec !assert-var '%(repo:is-inside-work-tree)' == true
16 in_work_dir create_repo_from_tgz "$base_dir/files/repo-two.tgz"
18 work_dir="$work_dir/repo-two-a"
19 test_tig status
21 assert_vars