]> git.ipfire.org Git - thirdparty/git.git/commit
remote: don't show success message when set-head fails
authorChristian Schlack <christian@backhub.co>
Thu, 17 Sep 2020 15:27:38 +0000 (15:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2020 18:40:17 +0000 (11:40 -0700)
commit5a07c6c3c2723297f1fbf18e3abcf0cd26e02293
treef2661a7825fc0d2bf917531901762c5e2232596c
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
remote: don't show success message when set-head fails

Suppress the message 'origin/HEAD set to master' in case of an error.

  $ git remote set-head origin -a
  error: Not a valid ref: refs/remotes/origin/master
  origin/HEAD set to master

Signed-off-by: Christian Schlack <christian@backhub.co>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c