<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,10 @@
 #!/usr/bin/ruby
 # -*- coding: utf-8 -*-
 
+# Many Pathname operations use getwd when they shouldn't, and then throw 
+# odd exceptions. Reduce our support burden by showing a user-friendly error.
+Dir.getwd rescue abort &quot;The current working directory doesn't exist, cannot proceed.&quot;
+
 def homebrew_rubylib_path
   lib_path = &quot;/../../Library/Homebrew&quot;
   # we resolve off of Dir.getwd as otherwise the symlink gets resolved!</diff>
      <filename>bin/brew</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4a2fb88e36796c38fb9330ea90912981b6580c04</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/patmcnally/homebrew/commit/7be9788a9f348beeab568de6c1e567fdc372a104</url>
  <id>7be9788a9f348beeab568de6c1e567fdc372a104</id>
  <committed-date>2009-10-23T11:20:12-07:00</committed-date>
  <authored-date>2009-10-23T06:49:48-07:00</authored-date>
  <message>Don't look broken if CWD doesn't exist

Ruby throws if CWD doesn't exist, even when you aren't doing anything related to the CWD. Sucks. So at least show the user a friendly error message rather than looking broken.</message>
  <tree>e010ba08907b95cb7435ff51a1936b529ffce660</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
