From: martin f. krafft Date: Mon, 22 Oct 2007 06:38:59 +0000 (+0200) Subject: switch tests for vcs directories for tags method X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/717f9cb47f76dc41fafab28b251176f44415a46b?hp=--cc switch tests for vcs directories for tags method Signed-off-by: martin f. krafft --- 717f9cb47f76dc41fafab28b251176f44415a46b 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