Browse Source

Temporarily unset GIT_EXTERNAL_DIFF when invoking git diff.

When the git diff command is customized through setting GIT_EXTERNAL_DIFF in the environment, the output of cdiff is broken and defaults to the output of the tool git has been configured to use.

Temporarily unsetting this variable when cdiff invokes git diff fixes the issue.
killarny 11 years ago
parent
commit
bcb99110bd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cdiff.py

+ 1
- 1
cdiff.py View File

54
 VCS_INFO = {
54
 VCS_INFO = {
55
     'Git': {
55
     'Git': {
56
         'probe' : ['git', 'rev-parse'],
56
         'probe' : ['git', 'rev-parse'],
57
-        'diff'  : ['git', 'diff'],
57
+        'diff'  : ['env', '-u', 'GIT_EXTERNAL_DIFF', 'git', 'diff'],
58
         'log'   : ['git', 'log', '--patch'],
58
         'log'   : ['git', 'log', '--patch'],
59
     },
59
     },
60
     'Mercurial': {
60
     'Mercurial': {