Skip to content

Commit

Permalink
Merge branch 'jk/duplicate-objects-in-packs'
Browse files Browse the repository at this point in the history
Test fixup to a topic recently graduated.

* jk/duplicate-objects-in-packs:
  Fix '\%o' for printf from coreutils
  • Loading branch information
Junio C Hamano committed Nov 4, 2013
2 parents 59c21d1 + fbc812a commit d35a42a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/lib-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d35a42a

Please sign in to comment.