<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,8 +8,9 @@
 		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;352.00&lt;/string&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.EditedObjectIDs&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
-			&lt;integer value=&quot;589&quot;/&gt;
+			&lt;integer value=&quot;29&quot;/&gt;
 			&lt;integer value=&quot;344&quot;/&gt;
+			&lt;integer value=&quot;589&quot;/&gt;
 		&lt;/object&gt;
 		&lt;object class=&quot;NSArray&quot; key=&quot;IBDocument.PluginDependencies&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
@@ -34,7 +35,7 @@
 				&lt;int key=&quot;NSWindowBacking&quot;&gt;2&lt;/int&gt;
 				&lt;string key=&quot;NSWindowRect&quot;&gt;{{246, 89}, {990, 682}}&lt;/string&gt;
 				&lt;int key=&quot;NSWTFlags&quot;&gt;813170688&lt;/int&gt;
-				&lt;string key=&quot;NSWindowTitle&quot;&gt;GitNub&lt;/string&gt;
+				&lt;string key=&quot;NSWindowTitle&quot;&gt;Gitnub&lt;/string&gt;
 				&lt;string key=&quot;NSWindowClass&quot;&gt;TexturedWindow&lt;/string&gt;
 				&lt;nil key=&quot;NSViewClass&quot;/&gt;
 				&lt;string key=&quot;NSWindowContentMaxSize&quot;&gt;{3.40282e+38, 3.40282e+38}&lt;/string&gt;
@@ -776,7 +777,7 @@
 					&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 					&lt;object class=&quot;NSMenuItem&quot; id=&quot;273211888&quot;&gt;
 						&lt;reference key=&quot;NSMenu&quot; ref=&quot;613528524&quot;/&gt;
-						&lt;string key=&quot;NSTitle&quot;&gt;GitNub&lt;/string&gt;
+						&lt;string key=&quot;NSTitle&quot;&gt;Gitnub&lt;/string&gt;
 						&lt;string key=&quot;NSKeyEquiv&quot;/&gt;
 						&lt;int key=&quot;NSKeyEquivModMask&quot;&gt;1048576&lt;/int&gt;
 						&lt;int key=&quot;NSMnemonicLoc&quot;&gt;2147483647&lt;/int&gt;
@@ -784,12 +785,12 @@
 						&lt;reference key=&quot;NSMixedImage&quot; ref=&quot;414381303&quot;/&gt;
 						&lt;string key=&quot;NSAction&quot;&gt;submenuAction:&lt;/string&gt;
 						&lt;object class=&quot;NSMenu&quot; key=&quot;NSSubmenu&quot; id=&quot;514001054&quot;&gt;
-							&lt;string key=&quot;NSTitle&quot;&gt;GitNub&lt;/string&gt;
+							&lt;string key=&quot;NSTitle&quot;&gt;Gitnub&lt;/string&gt;
 							&lt;object class=&quot;NSMutableArray&quot; key=&quot;NSMenuItems&quot;&gt;
 								&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 								&lt;object class=&quot;NSMenuItem&quot; id=&quot;905696592&quot;&gt;
 									&lt;reference key=&quot;NSMenu&quot; ref=&quot;514001054&quot;/&gt;
-									&lt;string key=&quot;NSTitle&quot;&gt;About GitNub&lt;/string&gt;
+									&lt;string key=&quot;NSTitle&quot;&gt;About Gitnub&lt;/string&gt;
 									&lt;string key=&quot;NSKeyEquiv&quot;/&gt;
 									&lt;int key=&quot;NSMnemonicLoc&quot;&gt;2147483647&lt;/int&gt;
 									&lt;reference key=&quot;NSOnImage&quot; ref=&quot;602984626&quot;/&gt;
@@ -856,7 +857,7 @@
 								&lt;/object&gt;
 								&lt;object class=&quot;NSMenuItem&quot; id=&quot;75149726&quot;&gt;
 									&lt;reference key=&quot;NSMenu&quot; ref=&quot;514001054&quot;/&gt;
-									&lt;string key=&quot;NSTitle&quot;&gt;Hide GitNub&lt;/string&gt;
+									&lt;string key=&quot;NSTitle&quot;&gt;Hide Gitnub&lt;/string&gt;
 									&lt;string key=&quot;NSKeyEquiv&quot;&gt;h&lt;/string&gt;
 									&lt;int key=&quot;NSKeyEquivModMask&quot;&gt;1048576&lt;/int&gt;
 									&lt;int key=&quot;NSMnemonicLoc&quot;&gt;2147483647&lt;/int&gt;
@@ -894,7 +895,7 @@
 								&lt;/object&gt;
 								&lt;object class=&quot;NSMenuItem&quot; id=&quot;826738325&quot;&gt;
 									&lt;reference key=&quot;NSMenu&quot; ref=&quot;514001054&quot;/&gt;
-									&lt;string key=&quot;NSTitle&quot;&gt;Quit GitNub&lt;/string&gt;
+									&lt;string key=&quot;NSTitle&quot;&gt;Quit Gitnub&lt;/string&gt;
 									&lt;string key=&quot;NSKeyEquiv&quot;&gt;q&lt;/string&gt;
 									&lt;int key=&quot;NSKeyEquivModMask&quot;&gt;1048576&lt;/int&gt;
 									&lt;int key=&quot;NSMnemonicLoc&quot;&gt;2147483647&lt;/int&gt;
@@ -2762,8 +2763,8 @@
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{{105, 155}, {990, 682}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;integer value=&quot;0&quot; id=&quot;6&quot;/&gt;
-					&lt;reference ref=&quot;6&quot;/&gt;
+					&lt;integer value=&quot;0&quot; id=&quot;8&quot;/&gt;
+					&lt;reference ref=&quot;8&quot;/&gt;
 					&lt;string&gt;{{105, 155}, {990, 682}}&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
@@ -2784,12 +2785,12 @@
 					&lt;string&gt;{{736, 76}, {172, 63}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;{{98, 319}, {170, 63}}&lt;/string&gt;
-					&lt;string&gt;{{435, 829}, {186, 20}}&lt;/string&gt;
+					&lt;string&gt;{{435, 829}, {185, 20}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{{70, 809}, {142, 20}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;integer value=&quot;0&quot; id=&quot;8&quot;/&gt;
+					&lt;reference ref=&quot;8&quot;/&gt;
 					&lt;object class=&quot;NSColor&quot;&gt;
 						&lt;int key=&quot;NSColorSpace&quot;&gt;1&lt;/int&gt;
 						&lt;bytes key=&quot;NSRGB&quot;&gt;MC44MDAwMDAwMSAwLjgwMDAwMDAxIDAuODAwMDAwMDEAA&lt;/bytes&gt;
@@ -2810,14 +2811,14 @@
 					&lt;reference ref=&quot;8&quot;/&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;string&gt;{{559, 736}, {194, 93}}&lt;/string&gt;
+					&lt;string&gt;{{558, 736}, {194, 93}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;{{223, 784}, {194, 23}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;string&gt;{{556, 611}, {154, 223}}&lt;/string&gt;
+					&lt;string&gt;{{514, 606}, {154, 223}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
@@ -2885,7 +2886,7 @@
 					&lt;string&gt;{{908, 93}, {64, 6}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;string&gt;{{488, 641}, {218, 193}}&lt;/string&gt;
+					&lt;string&gt;{{447, 636}, {218, 193}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{{82, 616}, {218, 193}}&lt;/string&gt;</diff>
      <filename>English.lproj/MainMenu.xib</filename>
    </modified>
    <modified>
      <diff>@@ -25,5 +25,5 @@
 - (BOOL)isLeafNode;
 - (NSDictionary*)attributes;
 - (BOOL)isHeading;
-- (BOOL)ignoredByGit:(NSString *)fileItem;
+// - (BOOL)ignoredByGit:(NSString *)fileItem;
 @end</diff>
      <filename>GNFileSystemItem.h</filename>
    </modified>
    <modified>
      <diff>@@ -64,6 +64,7 @@ class ApplicationController &lt; OSX::NSObject
       @branch_field.cell.setBackgroundStyle(NSBackgroundStyleRaised)
       @tab_panel.setDelegate(self)
 
+      set_window_title
       setup_search_field
       setup_refs_view_menu
       
@@ -77,6 +78,8 @@ class ApplicationController &lt; OSX::NSObject
         end
       end
       
+    else
+      warn_user_no_repository
     end
   end
   
@@ -135,6 +138,11 @@ class ApplicationController &lt; OSX::NSObject
   end
   
   private
+    def set_window_title
+      name = File.basename(repository_location)
+      @window.title = name
+    end
+    
     def ignore_list
       @ignore_list ||= lambda do
         # Grit takes over ls-files so we have to run it this way
@@ -210,4 +218,16 @@ class ApplicationController &lt; OSX::NSObject
       add_menu_item.call(&quot;Path&quot;, &quot;Find commits based on a path&quot;, false)
       @search_field.cell.setPlaceholderString(&quot;Search commits...&quot;)
     end
+    
+    def warn_user_no_repository
+      alert = NSAlert.alloc.init
+      alert.addButtonWithTitle(&quot;OK&quot;)
+      alert.setMessageText(&quot;Couldn't find a git repository&quot;)
+      alert.setInformativeText(&quot;Make sure you launch GitNub with the `nub` command line tool from a valid git repository.&quot;)
+      alert.setAlertStyle(NSCriticalAlertStyle)
+      
+      if(alert.runModal == NSAlertFirstButtonReturn)
+        NSApp.terminate
+      end
+    end
 end</diff>
      <filename>controllers/ApplicationController.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 class GitNubWebView &lt; WebView
   def awakeFromNib
     self.setUIDelegate(self)
+    self.setPolicyDelegate(self)
   end
   
   def webView_dragDestinationActionMaskForDraggingInfo(view, info)
@@ -15,5 +16,19 @@ class GitNubWebView &lt; WebView
     # str = sender.draggingPasteboard.stringForType(&quot;NSStringPboardType&quot;)
     # puts NSURL.URLWithString(str).host
   end
-
+  
+  def webView_decidePolicyForNavigationAction_request_frame_decisionListener(webview, info, request, frame, listener)
+    puts info['WebActionNavigationTypeKey']
+    
+    if info['WebActionNavigationTypeKey'].to_i == 0
+      if request.URL.to_s =~ /^file:\/\//
+        listener.use
+      else
+        listener.ignore
+        NSWorkspace.sharedWorkspace.openURL(request.URL)
+      end
+    else 
+      listener.use
+    end
+  end
 end
\ No newline at end of file</diff>
      <filename>views/GitNubWebView.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2915656ffb87fd7a927b49715372a0f15254250b</id>
    </parent>
  </parents>
  <author>
    <name>Justin Palmer</name>
    <email>justin@activereload.net</email>
  </author>
  <url>http://github.com/Caged/gitnub/commit/a0f044d7eba0ffe6a896274f38301086fb2564a9</url>
  <id>a0f044d7eba0ffe6a896274f38301086fb2564a9</id>
  <committed-date>2008-10-13T13:14:18-07:00</committed-date>
  <authored-date>2008-10-13T13:14:18-07:00</authored-date>
  <message>Show alert when you launch GitNub without the nub command from a dir that isn't a git repo</message>
  <tree>06ddb0fbd273752772d8b95e29ec56937e5a1adf</tree>
  <committer>
    <name>Justin Palmer</name>
    <email>justin@activereload.net</email>
  </committer>
</commit>
