summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-01-10 10:33:09 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-01-10 10:33:09 -0800
commitf06a5e607dde266884db4a99b70fbee09d5c5efc (patch)
tree76f4f796e45646182ffce1146b6a1017fcfd7320 /builtin
parentMerge branch 'nd/add-empty-fix' (diff)
parentdo not pretend sha1write returns errors (diff)
downloadtgif-f06a5e607dde266884db4a99b70fbee09d5c5efc.tar.xz
Merge branch 'jk/sha1write-void'
Code clean-up. * jk/sha1write-void: do not pretend sha1write returns errors
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index dfb4d84caa..541667f102 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -737,8 +737,6 @@ static void write_pack_file(void)
f = create_tmp_packfile(&pack_tmp_name);
offset = write_pack_header(f, nr_remaining);
- if (!offset)
- die_errno("unable to write pack header");
nr_written = 0;
for (; i < nr_objects; i++) {
struct object_entry *e = write_order[i];