git: use with-test-directory.

factor-shell
John Benediktsson 2017-09-04 19:45:25 -07:00
parent b473c5ff4c
commit 5a0bc9621d
1 changed files with 3 additions and 5 deletions

View File

@ -9,11 +9,9 @@ IN: git.tests
: with-empty-test-git-repo ( quot -- ) : with-empty-test-git-repo ( quot -- )
'[ '[
[ { "git" "init" } run-process drop
{ "git" "init" } run-process drop @
@ ] with-test-directory ; inline
] cleanup-unique-directory
] with-temp-directory ; inline
: with-zero-byte-file-repo ( quot -- ) : with-zero-byte-file-repo ( quot -- )
'[ '[