summaryrefslogtreecommitdiff
path: root/builtin/remote-ext.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-05-30 01:13:43 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-30 14:45:04 +0900
commit619b6c1710f726866f62e34b01cc57c03b390299 (patch)
tree51fdfbb3ea8441b2b479fa7121127262eb6073f3 /builtin/remote-ext.c
parentcredential: handle invalid arguments earlier (diff)
downloadtgif-619b6c1710f726866f62e34b01cc57c03b390299.tar.xz
upload-archive: handle "-h" option early
Normally upload-archive forks off upload-archive--writer to do the real work, and relays any errors back over the sideband channel. This is a good thing when the command is properly invoked remotely via ssh or git-daemon. But it's confusing to curious users who try "git upload-archive -h". Let's catch this invocation early and give a real usage message, rather than spewing "-h does not appear to be a git repository" amidst packet-lines. The chance of a false positive due to a real client asking for the repo "-h" is quite small. Likewise, we'll catch "-h" in upload-archive--writer. People shouldn't be invoking it manually, but it doesn't hurt to give a sane message if they do. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/remote-ext.c')
0 files changed, 0 insertions, 0 deletions