From: Tiago Melo Date: Mon, 16 Sep 2019 10:19:35 +0000 (+0000) Subject: script/ceph-backport.sh: Fix verification of git repository X-Git-Tag: v15.1.0~1545^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30398%2Fhead;p=ceph.git script/ceph-backport.sh: Fix verification of git repository In git 2.16 running "git show-ref HEAD" returns an error and prevents the script to procced. Signed-off-by: Tiago Melo --- diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index 35d2015a4791..40e4fb915199 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -465,7 +465,7 @@ function warning { # are we in a local git clone? # -if git show-ref HEAD >/dev/null 2>&1 ; then +if git status >/dev/null 2>&1 ; then debug "In a local git clone. Good." else error "This script must be run from inside a local git clone"