Permalink
Browse files

Fix for the diff action in the commit window

Starting with mate 2.5 it will not read from standard input if the TM_DOCUMENT_UUID environment variable is set. This is unfortunate for commands launched by TextMate (where the variable is set) that use mate to pass data to TextMate (via mate’s stdin).

This fix is provisional until a new version of mate gets released.
  • Loading branch information...
1 parent 6951c53 commit 12c87d5058796b895a96fc7c99ed9378bec5d727 @sorbits sorbits committed Feb 24, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 Commands/Commit.tmCommand
@@ -8,6 +8,7 @@
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/environment.rb'
+ENV.delete('TM_DOCUMENT_UUID') # Fix for mate v2.5
dispatch(:controller =&gt; "commit")</string>
<key>input</key>
<string>none</string>

0 comments on commit 12c87d5

Please sign in to comment.