aboutsummaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-05 13:48:19 +0900
committerJunio C Hamano <gitster@pobox.com>2017-10-05 13:48:19 +0900
commite46ebc27547e3d09385a76ade7ab11dc794f7595 (patch)
tree30cb7479169551ea70b0efaf87881d1a0001b6d1 /refs
parentefe9d6ce33ed817150f4ff63ebfc14a3f7667eb4 (diff)
parent38bdf62b738bb93f7e1a6af8058dc31f27c91d4e (diff)
downloadgit-e46ebc27547e3d09385a76ade7ab11dc794f7595.tar.gz
git-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 6e85b0bf0..3279d42c5 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;
}