diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-03-06 23:53:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-06 23:53:06 +0100 |
commit | 4ebed61ae46194e35cdf353acafec56b38b6b3c2 (patch) | |
tree | 39e4c258c5caf27e19cb1dd30cd4a25891951a79 /bundle.c | |
parent | Merge branch 'zj/diff-stat-dyncol' (diff) | |
parent | bundle: keep around names passed to add_pending_object() (diff) | |
download | git-4ebed61ae46194e35cdf353acafec56b38b6b3c2.tar.xz git-4ebed61ae46194e35cdf353acafec56b38b6b3c2.zip |
Merge branch 'tr/maint-bundle-boundary'
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); |