public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/drodriguez/gitnub.git
Search Repo:
Check remote name in git config.

Fallbacks to origin remote name.
It'll be ideal to track the currently selected branch from the main window 
and
show the push URL from that branch in the info window.
drodriguez (author)
Mon Apr 14 16:09:33 -0700 2008
commit  d679e7cf7a12ad6fed7e60604a2ae906bdb73928
tree    c222f425ccfc5ce7c3e46c9c4832e0ad9df2ed00
parent  7ca3a6c50627abe0af496d230327336ebdb1fb1f
...
20
21
22
23
 
 
 
24
25
26
...
20
21
22
 
23
24
25
26
27
28
0
@@ -20,7 +20,9 @@ class InfoWindowController < OSX::NSWindowController
0
   end
0
   
0
   def awakeFromNib
0
- clone_url = @repo.git.config({}, "--get", "remote.origin.url").gsub("\n", '')
0
+ remote_name = @repo.git.config({}, "--get", "branch.master.remote").chomp
0
+ remote_name ||= 'origin'
0
+ clone_url = @repo.git.config({}, "--get", "remote.#{remote_name}.url").chomp
0
     @clone_url.stringValue = clone_url
0
     
0
     @commits_count.stringValue = @repo.commit_count

Comments

    No one has commented yet.