Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Thu, 06 Nov 2008 19:18:27 +0100
4 files changed,
8 insertions(+),
6 deletions(-)
M
cache.c
→
cache.c
@@ -416,11 +416,11 @@ cache_log("[cgit] unable to open path %s: %s (%d)\n",
fullname, strerror(err), err); continue; } - printf("%s %s %10zd %s\n", + printf("%s %s %10"PRIuMAX" %s\n", name, sprintftime("%Y-%m-%d %H:%M:%S", slot.cache_st.st_mtime), - slot.cache_st.st_size, + (uintmax_t)slot.cache_st.st_size, slot.buf); close_slot(&slot); }
M
tests/setup.sh
→
tests/setup.sh
@@ -25,11 +25,13 @@ printf "Creating testrepo %s\n" $name
mkdir -p $name cd $name git init - for ((n=1; n<=count; n++)) + n=1 + while test $n -le $count do echo $n >file-$n git add file-$n git commit -m "commit $n" + n=$(expr $n + 1) done if test "$3" = "testplus" then@@ -101,7 +103,7 @@ run_test()
{ desc=$1 script=$2 - ((test_count++)) + test_count=$(expr $test_count + 1) printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log printf "test %d: eval='%s'\n" $test_count "$2" >>test-output.log eval "$2" >>test-output.log 2>>test-output.log
M
ui-plain.c
→
ui-plain.c
@@ -18,7 +18,7 @@ static void print_object(const unsigned char *sha1, const char *path)
{ enum object_type type; char *buf; - size_t size; + unsigned long size; type = sha1_object_info(sha1, &size); if (type == OBJ_BAD) {