commit - 11f4fa81f7f7aabf7d522a63257765a89926f3e0
commit + 743f0d3e8ead71af69563ac2855766f4f1c4d7de
blob - 081593cddd986b2e7f06eed2846cd07f1895c995
blob + e32b5a142455da777776713187383ad1166a01d4
--- regress/cmdline/Makefile
+++ regress/cmdline/Makefile
GOT_TEST_ROOT=/tmp
checkout:
- ./checkout.sh -q -r $(GOT_TEST_ROOT)
+ ./checkout.sh -q -r "$(GOT_TEST_ROOT)"
update:
- ./update.sh -q -r $(GOT_TEST_ROOT)
+ ./update.sh -q -r "$(GOT_TEST_ROOT)"
status:
- ./status.sh -q -r $(GOT_TEST_ROOT)
+ ./status.sh -q -r "$(GOT_TEST_ROOT)"
log:
- ./log.sh -q -r $(GOT_TEST_ROOT)
+ ./log.sh -q -r "$(GOT_TEST_ROOT)"
add:
- ./add.sh -q -r $(GOT_TEST_ROOT)
+ ./add.sh -q -r "$(GOT_TEST_ROOT)"
rm:
- ./rm.sh -q -r $(GOT_TEST_ROOT)
+ ./rm.sh -q -r "$(GOT_TEST_ROOT)"
diff:
- ./diff.sh -q -r $(GOT_TEST_ROOT)
+ ./diff.sh -q -r "$(GOT_TEST_ROOT)"
blame:
- ./blame.sh -q -r $(GOT_TEST_ROOT)
+ ./blame.sh -q -r "$(GOT_TEST_ROOT)"
branch:
- ./branch.sh -q -r $(GOT_TEST_ROOT)
+ ./branch.sh -q -r "$(GOT_TEST_ROOT)"
tag:
- ./tag.sh -q -r $(GOT_TEST_ROOT)
+ ./tag.sh -q -r "$(GOT_TEST_ROOT)"
ref:
- ./ref.sh -q -r $(GOT_TEST_ROOT)
+ ./ref.sh -q -r "$(GOT_TEST_ROOT)"
commit:
- ./commit.sh -q -r $(GOT_TEST_ROOT)
+ ./commit.sh -q -r "$(GOT_TEST_ROOT)"
revert:
- ./revert.sh -q -r $(GOT_TEST_ROOT)
+ ./revert.sh -q -r "$(GOT_TEST_ROOT)"
cherrypick:
- ./cherrypick.sh -q -r $(GOT_TEST_ROOT)
+ ./cherrypick.sh -q -r "$(GOT_TEST_ROOT)"
backout:
- ./backout.sh -q -r $(GOT_TEST_ROOT)
+ ./backout.sh -q -r "$(GOT_TEST_ROOT)"
rebase:
- ./rebase.sh -q -r $(GOT_TEST_ROOT)
+ ./rebase.sh -q -r "$(GOT_TEST_ROOT)"
import:
- ./import.sh -q -r $(GOT_TEST_ROOT)
+ ./import.sh -q -r "$(GOT_TEST_ROOT)"
histedit:
- ./histedit.sh -q -r $(GOT_TEST_ROOT)
+ ./histedit.sh -q -r "$(GOT_TEST_ROOT)"
integrate:
- ./integrate.sh -q -r $(GOT_TEST_ROOT)
+ ./integrate.sh -q -r "$(GOT_TEST_ROOT)"
stage:
- ./stage.sh -q -r $(GOT_TEST_ROOT)
+ ./stage.sh -q -r "$(GOT_TEST_ROOT)"
unstage:
- ./unstage.sh -q -r $(GOT_TEST_ROOT)
+ ./unstage.sh -q -r "$(GOT_TEST_ROOT)"
cat:
- ./cat.sh -q -r $(GOT_TEST_ROOT)
+ ./cat.sh -q -r "$(GOT_TEST_ROOT)"
clone:
- ./clone.sh -q -r $(GOT_TEST_ROOT)
+ ./clone.sh -q -r "$(GOT_TEST_ROOT)"
fetch:
- ./fetch.sh -q -r $(GOT_TEST_ROOT)
+ ./fetch.sh -q -r "$(GOT_TEST_ROOT)"
tree:
- ./tree.sh -q -r $(GOT_TEST_ROOT)
+ ./tree.sh -q -r "$(GOT_TEST_ROOT)"
.include <bsd.regress.mk>
blob - d022c285439d814443120e87a8f437bb742aa4e5
blob + cde580f8704a206fe481381cd52f87d471ee007f
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
echo "No test name provided" >&2
return 1
fi
- local testroot=`mktemp -p $GOT_TEST_ROOT -d got-test-$testname-XXXXXXXX`
+ local testroot=$(mktemp -d "$GOT_TEST_ROOT/got-test-$testname-XXXXXXXX")
mkdir $testroot/repo
git_init $testroot/repo
if [ -z "$no_tree" ]; then
blob - 8678e992d9963822ee6f59550d2f3c1394087f53
blob + 5d5816f7ae1012a37a6130b169e44eaf28fe5038
--- regress/cmdline/import.sh
+++ regress/cmdline/import.sh
test_import_basic() {
local testname=import_basic
- local testroot=`mktemp -p $GOT_TEST_ROOT -d got-test-$testname-XXXXXXXX`
+ local testroot=`mktemp -d "$GOT_TEST_ROOT/got-test-$testname-XXXXXXXX"`
got init $testroot/repo
test_import_ignores() {
local testname=import_ignores
- local testroot=`mktemp -p $GOT_TEST_ROOT -d got-test-$testname-XXXXXXXX`
+ local testroot=`mktemp -d "$GOT_TEST_ROOT/got-test-$testname-XXXXXXXX"`
got init $testroot/repo
test_import_empty_dir() {
local testname=import_empty_dir
- local testroot=`mktemp -p $GOT_TEST_ROOT -d got-test-$testname-XXXXXXXX`
+ local testroot=`mktemp -d "$GOT_TEST_ROOT/got-test-$testname-XXXXXXXX"`
got init $testroot/repo
test_import_symlink() {
local testname=import_symlink
- local testroot=`mktemp -p $GOT_TEST_ROOT -d got-test-$testname-XXXXXXXX`
+ local testroot=`mktemp -d "$GOT_TEST_ROOT/got-test-$testname-XXXXXXXX"`
got init $testroot/repo