X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/8863dd020e175247f423aed1dc63dbe0269af923..4d5377c0971e22b5fe37b747bb4cc84decb42f91:/mrconfig.complex?ds=inline 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