]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
push: support signing pushes iff the server supports it
authorDave Borowitz <dborowitz@google.com>
Wed, 19 Aug 2015 15:26:46 +0000 (11:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2015 19:58:45 +0000 (12:58 -0700)
commit30261094b1f7fdcba3b7a1f396e43891cd998149
tree1ad9cc07d3c3dc5fb1a07c878be7f9b0fe2d4dde
parent068c77a5189584de2a8d9c2ad29e2370159444ae
push: support signing pushes iff the server supports it

Add a new flag --sign=true (or --sign=false), which means the same
thing as the original --signed (or --no-signed).  Give it a third
value --sign=if-asked to tell push and send-pack to send a push
certificate if and only if the server advertised a push cert nonce.

If not, warn the user that their push may not be as secure as they
thought.

Signed-off-by: Dave Borowitz <dborowitz@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-push.txt
Documentation/git-send-pack.txt
builtin/push.c
builtin/send-pack.c
remote-curl.c
send-pack.c
send-pack.h
transport-helper.c
transport.c
transport.h