Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http-protocol.txt: Basic Auth is defined in RFC 2617, not RFC 2616
[gitweb.git]
/
builtin
/
update-ref.c
diff --git
a/builtin/update-ref.c
b/builtin/update-ref.c
index 1292cfea11d87e8c98ba64ffae9d6a1aeffaca9f..5c208bb1fc4f6c467842b37157435e87fe1415cd 100644
(file)
--- a/
builtin/update-ref.c
+++ b/
builtin/update-ref.c
@@
-147,6
+147,7
@@
static void parse_cmd_create(const char *next)
struct ref_update *update;
update = update_alloc();
+ update->have_old = 1;
if ((next = parse_first_arg(next, &ref)) != NULL && ref.buf[0])
update_store_ref_name(update, ref.buf);