summaryrefslogtreecommitdiff
path: root/t/lib-pack.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-11-04 14:58:10 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-11-04 14:58:10 -0800
commitd35a42a62e6e710f34f0c6f81d3da644a7bbc2dd (patch)
tree83520303ccb37e5b803bdfbc37e17f90ab285dba /t/lib-pack.sh
parentMerge branch 'jk/subtree-install-fix' (diff)
parentFix '\%o' for printf from coreutils (diff)
downloadtgif-d35a42a62e6e710f34f0c6f81d3da644a7bbc2dd.tar.xz
Merge branch 'jk/duplicate-objects-in-packs'
Test fixup to a topic recently graduated. * jk/duplicate-objects-in-packs: Fix '\%o' for printf from coreutils
Diffstat (limited to 't/lib-pack.sh')
-rw-r--r--t/lib-pack.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/lib-pack.sh b/t/lib-pack.sh
index 7e8685b44c..b96e1254dd 100644
--- a/t/lib-pack.sh
+++ b/t/lib-pack.sh
@@ -12,10 +12,10 @@
# Print the big-endian 4-byte octal representation of $1
uint32_octal () {
n=$1
- printf '\%o' $(($n / 16777216)); n=$((n % 16777216))
- printf '\%o' $(($n / 65536)); n=$((n % 65536))
- printf '\%o' $(($n / 256)); n=$((n % 256))
- printf '\%o' $(($n ));
+ printf '\\%o' $(($n / 16777216)); n=$((n % 16777216))
+ printf '\\%o' $(($n / 65536)); n=$((n % 65536))
+ printf '\\%o' $(($n / 256)); n=$((n % 256))
+ printf '\\%o' $(($n ));
}
# Print the big-endian 4-byte binary representation of $1