From 78c5e79e7068c153bb0e74a8248919626d624a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 7 Nov 2010 09:10:51 +0100 Subject: [PATCH] Move CVS check earlier as hg can appear in one of the parent dirs. --- sunrise-commit.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunrise-commit.in b/sunrise-commit.in index 83656fc..ba5ebf1 100755 --- a/sunrise-commit.in +++ b/sunrise-commit.in @@ -57,11 +57,11 @@ find_repo() { if svn info >/dev/null 2>&1; then SC_VCS=svn SC_WANT_CHANGELOG=1 - elif hg tip >/dev/null 2>&1; then - SC_VCS=hg elif cvs status -l >/dev/null 2>&1; then SC_VCS=cvs SC_WANT_CHANGELOG=1 + elif hg tip >/dev/null 2>&1; then + SC_VCS=hg else local remotes ret remotes=$(git branch -r 2>/dev/null)