]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4011-diff-symlink.sh
The seventh batch
[thirdparty/git.git] / t / t4011-diff-symlink.sh
index d7a5f7ae780c0319514fd949dacac98cfe6ce23b..bc8ba887191fac4fd602fe5c2406f3e66a4becfa 100755 (executable)
@@ -13,13 +13,13 @@ TEST_PASSES_SANITIZE_LEAK=true
 
 # Print the short OID of a symlink with the given name.
 symlink_oid () {
-       local oid=$(printf "%s" "$1" | git hash-object --stdin) &&
+       local oid="$(printf "%s" "$1" | git hash-object --stdin)" &&
        git rev-parse --short "$oid"
 }
 
 # Print the short OID of the given file.
 short_oid () {
-       local oid=$(git hash-object "$1") &&
+       local oid="$(git hash-object "$1")" &&
        git rev-parse --short "$oid"
 }