Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e4e79a2175 | |||
6689f08735 | |||
9470657ad0 | |||
455c161c47 | |||
21b1aced83 |
2
Makefile
2
Makefile
@ -55,7 +55,7 @@ all:
|
||||
# Define USE_STDEV below if you want git to care about the underlying device
|
||||
# change being considered an inode change from the update-cache perspective.
|
||||
|
||||
GIT_VERSION = 1.0.0
|
||||
GIT_VERSION = 1.0.0a
|
||||
|
||||
# CFLAGS and LDFLAGS are for the users to override from the command line.
|
||||
|
||||
|
11
debian/changelog
vendored
11
debian/changelog
vendored
@ -1,3 +1,14 @@
|
||||
git-core (1.0.0a-0) unstable; urgency=low
|
||||
|
||||
* GIT 1.0.0a to include the following fixes:
|
||||
|
||||
- Avoid misleading success message on error (Johannes)
|
||||
- objects/info/packs: work around bug in http-fetch.c::fetch_indices()
|
||||
- http-fetch.c: fix objects/info/pack parsing.
|
||||
- An off-by-one bug found by valgrind (Pavel)
|
||||
|
||||
-- Junio C Hamano <junkio@cox.net> Wed, 21 Dec 2005 13:17:17 -0800
|
||||
|
||||
git-core (1.0.0-0) unstable; urgency=low
|
||||
|
||||
* GIT 1.0.0
|
||||
|
@ -658,7 +658,7 @@ static int fetch_indices(struct alt_base *repo)
|
||||
switch (data[i]) {
|
||||
case 'P':
|
||||
i++;
|
||||
if (i + 52 < buffer.posn &&
|
||||
if (i + 52 <= buffer.posn &&
|
||||
!strncmp(data + i, " pack-", 6) &&
|
||||
!strncmp(data + i + 46, ".pack\n", 6)) {
|
||||
get_sha1_hex(data + i + 6, sha1);
|
||||
@ -667,7 +667,7 @@ static int fetch_indices(struct alt_base *repo)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
while (data[i] != '\n')
|
||||
while (i < buffer.posn && data[i] != '\n')
|
||||
i++;
|
||||
}
|
||||
i++;
|
||||
|
@ -440,7 +440,7 @@ int main(int argc, char **argv)
|
||||
if (len < 5 || strcmp(pack_name + len - 5, ".pack"))
|
||||
die("packfile name '%s' does not end with '.pack'",
|
||||
pack_name);
|
||||
index_name_buf = xmalloc(len - 1);
|
||||
index_name_buf = xmalloc(len);
|
||||
memcpy(index_name_buf, pack_name, len - 5);
|
||||
strcpy(index_name_buf + len - 5, ".idx");
|
||||
index_name = index_name_buf;
|
||||
|
@ -272,7 +272,7 @@ static int send_pack(int in, int out, int nr_refspec, char **refspec)
|
||||
packet_flush(out);
|
||||
if (new_refs)
|
||||
pack_objects(out, remote_refs);
|
||||
else
|
||||
else if (ret == 0)
|
||||
fprintf(stderr, "Everything up-to-date\n");
|
||||
close(out);
|
||||
return ret;
|
||||
|
@ -200,6 +200,7 @@ static void write_pack_info_file(FILE *fp)
|
||||
int i;
|
||||
for (i = 0; i < num_pack; i++)
|
||||
fprintf(fp, "P %s\n", info[i]->p->pack_name + objdirlen + 6);
|
||||
fputc('\n', fp);
|
||||
}
|
||||
|
||||
static int update_info_packs(int force)
|
||||
|
Reference in New Issue
Block a user