]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

bzr support for register
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 12 Oct 2007 23:54:27 +0000 (19:54 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 12 Oct 2007 23:54:27 +0000 (19:54 -0400)
mr

diff --git a/mr b/mr
index 96f3a16cbd4f2332194823ae9126dcb1ba16faf6..e15019e3b8092e74a250b9f902cd02a61d2b922c 100755 (executable)
--- a/mr
+++ b/mr
@@ -730,6 +730,13 @@ register =                                                         \
                fi                                                      \
                echo "Registering git url: $url"                        \
                mr config "$(pwd)" checkout="git clone $url $basedir"   \
+       elif [ -d .bzr ]; then                                          \
+               url=$(cat .bzr/branch/parent)                           \
+               if [ -z "$url" ]; then                                  \
+                       error "cannot determine bzr url"                \
+               fi                                                      \
+               echo "Registering bzr url: $url"                        \
+               mr config "$(pwd)" checkout="bzr clone $url $basedir"   \
        else                                                            \
                error "unable to register this repo type"               \
        fi