diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-03-12 15:46:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-12 15:46:54 -0700 |
commit | 92b7aacbbc654de4cfae6806bc92cf81ec1823aa (patch) | |
tree | 91324fecd7da2165d0e018de9770dde939a0f927 /bundle.c | |
parent | fce8b5d82fadd0bc27b12ae91bf7ad74d6488e97 (diff) | |
parent | efe4be12490ab684786c48135731c4d2648bbecc (diff) | |
download | git-92b7aacbbc654de4cfae6806bc92cf81ec1823aa.tar.gz |
Merge branch 'tr/maint-bundle-boundary' into maint
"git bundle" did not record boundary commits correctly when there
are many of them.
By Thomas Rast
* tr/maint-bundle-boundary:
bundle: keep around names passed to add_pending_object()
t5510: ensure we stay in the toplevel test dir
t5510: refactor bundle->pack conversion
Diffstat (limited to 'bundle.c')
-rw-r--r-- | bundle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -273,7 +273,7 @@ int create_bundle(struct bundle_header *header, const char *path, if (!get_sha1_hex(buf.buf + 1, sha1)) { struct object *object = parse_object(sha1); object->flags |= UNINTERESTING; - add_pending_object(&revs, object, buf.buf); + add_pending_object(&revs, object, xstrdup(buf.buf)); } } else if (!get_sha1_hex(buf.buf, sha1)) { struct object *object = parse_object(sha1); |