summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-10-05 13:48:19 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-05 13:48:19 +0900
commite46ebc27547e3d09385a76ade7ab11dc794f7595 (patch)
tree30cb7479169551ea70b0efaf87881d1a0001b6d1 /refs
parentMerge branch 'rs/resolve-ref-optional-result' (diff)
parentgraph: use strbuf_addchars() to add spaces (diff)
downloadtgif-e46ebc27547e3d09385a76ade7ab11dc794f7595.tar.xz
Merge branch 'rs/cleanup-strbuf-users'
Code clean-up. * rs/cleanup-strbuf-users: graph: use strbuf_addchars() to add spaces use strbuf_addstr() for adding strings to strbufs path: use strbuf_add_real_path()
Diffstat (limited to 'refs')
-rw-r--r--refs/packed-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c
index 6e85b0bf0b..3279d42c5a 100644
--- a/refs/packed-backend.c
+++ b/refs/packed-backend.c
@@ -1233,8 +1233,8 @@ static int write_with_updates(struct packed_ref_store *refs,
}
if (ok != ITER_DONE) {
- strbuf_addf(err, "unable to write packed-refs file: "
- "error iterating over old contents");
+ strbuf_addstr(err, "unable to write packed-refs file: "
+ "error iterating over old contents");
goto error;
}