[PATCH 1/2] t1501: avoid bashisms
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
t/t1501-worktree.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh
index 2c8f01f..488160e 100755
--- a/t/t1501-worktree.sh
+++ b/t/t1501-worktree.sh
@@ -322,7 +322,10 @@ test_expect_success 'git grep' '
test_expect_success 'git commit' '
(
cd repo.git &&
- GIT_DIR=. GIT_WORK_TREE=work git commit -a -m done
+ GIT_DIR=. &&
+ GIT_WORK_TREE=work &&
+ export GIT_DIR GIT_WORK_TREE &&
+ git commit -a -m done
)
'
--
1.7.3.4.878.g439c7