diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-04-09 12:01:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-09 12:01:28 -0700 |
commit | aba7af8e67664f60b432ae1760644f9e96470949 (patch) | |
tree | b0e8f3ca4c167b4935d8a047fcff54efa65f125d /builtin | |
parent | b8a30194dbea86228aa55fb270f3d704cf7924f4 (diff) | |
parent | b9d56b5dd9a8819c900725b8618f8bd994a5054f (diff) | |
download | git-aba7af8e67664f60b432ae1760644f9e96470949.tar.gz |
Merge branch 'mh/update-ref-batch-create-fix' into maint
* mh/update-ref-batch-create-fix:
update-ref: fail create operation over stdin if ref already exists
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/update-ref.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/update-ref.c b/builtin/update-ref.c index 1292cfea11..5c208bb1fc 100644 --- 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); |