<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,19 +1,11 @@
 module Grit
 
-  class RemoteError &lt; StandardError
-  end
-
-  class RemoteNonexistentError &lt; StandardError
-  end
-
-  class BranchNonexistentError &lt; StandardError
-  end
-
-  class RemoteBranchExistsError &lt; StandardError
-  end
-
-  class RemoteUninitializedError &lt; StandardError
-  end
+  class RemoteError &lt; StandardError; end
+  class RemoteNonexistentError &lt; RemoteError; end
+  class BranchNonexistentError &lt; RemoteError; end
+  class RemoteBranchExistsError &lt; RemoteError; end
+  class RemoteUninitializedError &lt; RemoteError; end
+  class ConflictError &lt; RemoteError; end
 
   class Repo
     DAEMON_EXPORT_FILE = 'git-daemon-export-ok'
@@ -547,6 +539,10 @@ module Grit
           raise BranchNonexistentError, last_error
         elsif last_error =~ /unknown revision or path not in the working tree/
           raise RemoteUninitializedError, last_error
+        elsif last_error =~ /error: Entry '.*' would be overwritten by merge. Cannot merge./
+          raise ConflictError, last_error
+        elsif last_error =~ /Entry '.*' not uptodate. Cannot merge./
+          raise ConflictError, last_error
         elsif last_error =~ /(error|fatal)/
           raise RemoteError, last_error
         end</diff>
      <filename>lib/grit/repo.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>979e241b86895f9ce30f38939ec609f6775ecc16</id>
    </parent>
  </parents>
  <author>
    <name>Steve Hoeksema</name>
    <email>steve@seven.net.nz</email>
  </author>
  <url>http://github.com/square-circle-triangle/grit/commit/5c5af60a0c98db6363074af5dc15a97d99b9c3d2</url>
  <id>5c5af60a0c98db6363074af5dc15a97d99b9c3d2</id>
  <committed-date>2009-06-22T00:05:25-07:00</committed-date>
  <authored-date>2009-06-22T00:05:25-07:00</authored-date>
  <message>raise error on conflicts</message>
  <tree>b2f4392beae247976da23ebfc26203d6420de778</tree>
  <committer>
    <name>Steve Hoeksema</name>
    <email>steve@seven.net.nz</email>
  </committer>
</commit>
