aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-02-20 02:22:40 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-02-20 02:22:40 +0100
commit6caeb18c60aac9ad18d9633e517aa720d136311f (patch)
tree8252a2951d930481dac1734417aa61d08dc2836c /t
parentf1ae759f2000978c28efed057ae7697fcaeb92a1 (diff)
downloadsbotools2-6caeb18c60aac9ad18d9633e517aa720d136311f.tar.xz
Quote $RealBin in t/11-git.t when shelling out
Diffstat (limited to 't')
-rwxr-xr-xt/11-git.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/11-git.t b/t/11-git.t
index 00f4299..cc75e31 100755
--- a/t/11-git.t
+++ b/t/11-git.t
@@ -54,7 +54,7 @@ cleanup();
# initialise repo
capture_merged { system(<<"END"); };
-cd $RealBin; rm -rf gitrepo; mkdir gitrepo; cd gitrepo;
+cd "$RealBin"; rm -rf gitrepo; mkdir gitrepo; cd gitrepo;
git init;
echo "echo Hello" > test; git add test; git commit -m 'initial';
git checkout -b b1; echo 'echo "Hello World."' > test; git commit -am 'branch commit';
@@ -68,7 +68,7 @@ script (qw/ sbosnap fetch /, { expected => qr!Pulling SlackBuilds tree.*Cloning
# make a conflict
capture_merged { system(<<"END"); };
-cd $RealBin; cd gitrepo; git reset --hard b1
+cd "$RealBin"; cd gitrepo; git reset --hard b1
END
# 2: sbosnap update through merge conflict