diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-11 15:00:05 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-11 15:00:05 -0800 |
commit | 82527cf33e59308b86cf3defe9ae0f5c2367a012 (patch) | |
tree | d780715fae0b171b98dbd7f71983eccf8ccecf7e | |
parent | 1b2486d73789aaed0671e8d5cc60f5624d8e7ce5 (diff) | |
parent | a91ef6e75b897a255cc17b70014a39e68dd54c7a (diff) | |
download | git-82527cf33e59308b86cf3defe9ae0f5c2367a012.tar.gz |
Merge branch 'maint'
* maint:
fix index-pack with packs >4GB containing deltas on 32-bit machines
git-hash-object should honor config variables
gitweb: correct month in date display for atom feeds
-rwxr-xr-x | gitweb/gitweb.perl | 2 | ||||
-rw-r--r-- | hash-object.c | 2 | ||||
-rw-r--r-- | index-pack.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 759dff1cce..e788ef90c9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1856,7 +1856,7 @@ sub parse_date { $date{'mday-time'} = sprintf "%d %s %02d:%02d", $mday, $months[$mon], $hour ,$min; $date{'iso-8601'} = sprintf "%04d-%02d-%02dT%02d:%02d:%02dZ", - 1900+$year, $mon, $mday, $hour ,$min, $sec; + 1900+$year, 1+$mon, $mday, $hour ,$min, $sec; $tz =~ m/^([+\-][0-9][0-9])([0-9][0-9])$/; my $local = $epoch + ((int $1 + ($2/60)) * 3600); diff --git a/hash-object.c b/hash-object.c index 18f5017f51..0a58f3f126 100644 --- a/hash-object.c +++ b/hash-object.c @@ -42,6 +42,8 @@ int main(int argc, char **argv) int prefix_length = -1; int no_more_flags = 0; + git_config(git_default_config); + for (i = 1 ; i < argc; i++) { if (!no_more_flags && argv[i][0] == '-') { if (!strcmp(argv[i], "-t")) { diff --git a/index-pack.c b/index-pack.c index 715a5bb7a6..3c99a1fce9 100644 --- a/index-pack.c +++ b/index-pack.c @@ -256,7 +256,7 @@ static void *unpack_raw_entry(struct object_entry *obj, union delta_base *delta_ static void *get_data_from_pack(struct object_entry *obj) { - unsigned long from = obj[0].idx.offset + obj[0].hdr_size; + off_t from = obj[0].idx.offset + obj[0].hdr_size; unsigned long len = obj[1].idx.offset - from; unsigned long rdy = 0; unsigned char *src, *data; |