1#!/bin/sh 2 3. libtest.sh 4. libgit.sh 5 6export LINES=10 7 8steps " 9 :exec !assert-var '%(repo:head)' == master 10 :exec !assert-var '%(repo:head-id)' == feeb2dfd5e09e887e4b6c901e7d91a4c85a7831d 11 :exec !assert-var '%(repo:remote)' == origin/master 12 :exec !assert-var '%(repo:cdup)' == ../ 13 :exec !assert-var '%(repo:prefix)' == repo-two-a/ 14 :exec !assert-var '%(repo:git-dir)' == '$HOME/$work_dir/.git' 15 :exec !assert-var '%(repo:is-inside-work-tree)' == true 16 :save-display status.screen 17" 18 19in_work_dir create_repo_from_tgz "$base_dir/files/repo-two.tgz" 20 21work_dir="$work_dir/repo-two-a" 22test_tig status 23 24assert_equals status.screen <<EOF 25On branch master. Your branch is up-to-date with 'origin/master'. 26Changes to be committed: 27 (no files) 28Changes not staged for commit: 29 (no files) 30Untracked files: 31 (no files) 32 33[status] Nothing to update 100% 34EOF 35 36assert_vars 7 37