X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/398033ad68e4cfd347d57a3cbb903dae17ace0f4..e7a82f206d14cbaad72df80de8844feadbe5a24b:/mr?ds=inline diff --git a/mr b/mr index a8d864f..f5c37af 100755 --- a/mr +++ b/mr @@ -1083,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) @@ -1100,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