X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/8863dd020e175247f423aed1dc63dbe0269af923..17e94a28e3d140ba3f32c6e90ddec3daee87fd12:/mrconfig.complex?ds=inline diff --git a/mrconfig.complex b/mrconfig.complex index e5699d8..2d566c3 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 - git tag - elsif [ -d "$MR_REPO"/.git ]; then + if [ -d "$MR_REPO"/.git ]; then + git tag -l + 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