public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
force update button in "submodule"
timcharper (author)
Fri Jun 13 13:07:42 -0700 2008
commit  aa99a38405038aa79a5663af85fd8cfdb5a5b8c0
tree    ba39a8719cfa5315e13bcce0212c843a6ec6f235
parent  27932a01fb1d7f0ab4a15f42fe8b1fd4cdd63e6d
...
30
31
32
 
 
 
 
 
 
33
34
35
...
30
31
32
33
34
35
36
37
38
39
40
41
0
@@ -30,6 +30,12 @@ EOF
0
     rescan_project
0
   end
0
   
0
+ def update
0
+ puts "<pre>"
0
+ puts git.submodule.init_and_update
0
+ puts "</pre>"
0
+ end
0
+
0
   #
0
   ##
0
   ###
...
8
9
10
 
 
 
 
 
11
12
...
8
9
10
11
12
13
14
15
16
17
0
@@ -8,4 +8,9 @@
0
   :update_streaming => "iframe_output")
0
 %>
0
 
0
+<%= button_to_remote("Force Update", :params => {:controller => "submodule", :action => "update" },
0
+ :on_complete => remote_function(:params => {:controller => "submodule", :action => "list"}, :update => "submodules"),
0
+ :update_streaming => "iframe_output")
0
+%>
0
+
0
 <iframe id='iframe_output' class="output"></iframe>
0
\ No newline at end of file

Comments

    No one has commented yet.