Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: recurse in-process using 'struct repository'
[gitweb.git]
/
t
/
t1501-work-tree.sh
diff --git
a/t/t1501-work-tree.sh
b/t/t1501-work-tree.sh
index cc5b870e5875bab8326393aea3a8d9f944210de6..b06210ec5e8ffa30b59314b1c79ebc9bdb8f6476 100755
(executable)
--- a/
t/t1501-work-tree.sh
+++ b/
t/t1501-work-tree.sh
@@
-423,4
+423,12
@@
test_expect_success '$GIT_WORK_TREE overrides $GIT_DIR/common' '
)
'
+test_expect_success 'error out gracefully on invalid $GIT_WORK_TREE' '
+ (
+ GIT_WORK_TREE=/.invalid/work/tree &&
+ export GIT_WORK_TREE &&
+ test_expect_code 128 git rev-parse
+ )
+'
+
test_done