Browse code

New plugin git-svn installing git project git-svn-clone-externals

Tristan Carel authored on 13/04/2011 at 14:48:47
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+git-svn-clone-externals
0 1
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+
1
+if ! [ -d "$ZSH/plugins/git-svn/git-svn-clone-externals" ] ;then
2
+    git clone https://github.com/andrep/git-svn-clone-externals.git
3
+fi
4
+export PATH="$ZSH/plugins/git-svn/git-svn-clone-externals:$PATH"
5
+
6
+function git_svn_update {
7
+    (cd "$ZSH/plugins/git-svn/git-svn-clone-externals" && \
8
+        git pull origin master)
9
+}