From 717f9cb47f76dc41fafab28b251176f44415a46b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 22 Oct 2007 08:38:59 +0200 Subject: [PATCH 1/1] switch tests for vcs directories for tags method Signed-off-by: martin f. krafft --- mrconfig.complex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrconfig.complex b/mrconfig.complex index e5699d8..3bc577c 100644 --- a/mrconfig.complex +++ b/mrconfig.complex @@ -11,9 +11,9 @@ gc = if [ -d "$MR_REPO"/.git ]; then git gc; fi push = if [ -d "$MR_REPO"/.git ]; then git push; fi # And how to list tags for git and svn. tag = - if [ -d "$MR_REPO"/.svn ]; then + if [ -d "$MR_REPO"/.git ]; then git tag - elsif [ -d "$MR_REPO"/.git ]; then + elsif [ -d "$MR_REPO"/.svn ]; then url=$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2) svn ls "$(echo '$url' | sed -e 's/trunk/tags/')" else -- 2.39.5