X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/416a5c247bfb6da5cfb57ad9249e637c1f709aa6..e7a82f206d14cbaad72df80de8844feadbe5a24b:/mr?ds=inline diff --git a/mr b/mr index c0f3e83..f5c37af 100755 --- a/mr +++ b/mr @@ -936,6 +936,12 @@ lib = echo "mr: $@" >&2 exit 1 } + warning() { + echo "mr (warning): $@" >&2 + } + info() { + echo "mr: $@" >&2 + } hours_since() { if [ -z "$1" ] || [ -z "$2" ]; then error "mr: usage: hours_since action num" @@ -1077,7 +1083,7 @@ register = if [ -n "$1" ]; then cd "$1" fi - basedir="$(basename $PWD)" + basedir="${PWD##*/}" case "$(get_repo_type .)" in svn) url=$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2) @@ -1094,7 +1100,7 @@ register = non-bare) config=.git/config;; bare|fake-bare) config=config;; esac - url="$(LANG=C GIT_CONFIG="$config" git-config --get remote.origin.url)" + url="$(LANG=C GIT_CONFIG="$config" git-config --get remote.origin.url)" || : if [ -z "$url" ]; then error "cannot determine git url" fi