summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refs.c b/src/refs.c
index e90cf5de1..b4c4b1ec1 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -842,7 +842,7 @@ static int reference_path_available(
if (!data.available) {
giterr_set(GITERR_REFERENCE,
- "The path to reference '%s' collides with an existing one");
+ "The path to reference '%s' collides with an existing one", ref);
return -1;
}
@@ -902,7 +902,7 @@ static int reference_can_write(
* the rename; the existing one would be overwritten */
if (exists) {
giterr_set(GITERR_REFERENCE,
- "A reference with that name (%s) already exists");
+ "A reference with that name (%s) already exists", refname);
return GIT_EEXISTS;
}
}