diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-20 02:22:40 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-20 02:22:40 +0100 |
commit | 6caeb18c60aac9ad18d9633e517aa720d136311f (patch) | |
tree | 8252a2951d930481dac1734417aa61d08dc2836c /t | |
parent | f1ae759f2000978c28efed057ae7697fcaeb92a1 (diff) | |
download | sbotools2-6caeb18c60aac9ad18d9633e517aa720d136311f.tar.xz |
Quote $RealBin in t/11-git.t when shelling out
Diffstat (limited to 't')
-rwxr-xr-x | t/11-git.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |