≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1734

Bug #1734: commits#show chokes on mode-changing diffs

Kind bug
Product wincent.dev
When Created 2010-11-11T07:28:55Z, updated 2010-11-12T20:49:39Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

This commit, for example:

commit 3870f90b262cf825e6dfdd83090626cf1e5826d5
Author: Greg Hurrell <greg@hurrell.net>
Date:   Mon Feb 18 22:47:22 2008 +0100

    Correct file mode on spec files
    
    Two spec files were missing the executable bit.
    
    Signed-off-by: Greg Hurrell <greg@hurrell.net>

diff --git a/spec/indentation_spec.rb b/spec/indentation_spec.rb
old mode 100644
new mode 100755
diff --git a/spec/regressions_spec.rb b/spec/regressions_spec.rb
old mode 100644
new mode 100755

Raises a Git::Commit::MalformedDiffError, with message, "malformed diff output for line: diff --git a/spec/regressions_spec.rb b/spec/regressions_spec.rb".

Comments

  1. Greg Hurrell 2010-11-11T07:29:12Z

    Summary changed:

    • From: commits#show chokes on diffs mode-changing diffs
    • To: commits#show chokes on mode-changing diffs
  2. Greg Hurrell 2010-11-12T19:58:56Z

    Raw output:

    $ git diff-tree --numstat -p --patience --root 3870f90b262cf825e6dfdd83090626cf1e5826d5
    3870f90b262cf825e6dfdd83090626cf1e5826d5
    0	0	spec/indentation_spec.rb
    0	0	spec/regressions_spec.rb
    
    diff --git a/spec/indentation_spec.rb b/spec/indentation_spec.rb
    old mode 100644
    new mode 100755
    diff --git a/spec/regressions_spec.rb b/spec/regressions_spec.rb
    old mode 100644
    new mode 100755
  3. Greg Hurrell 2010-11-12T20:49:30Z

    Ok, the crash is fixed. The actual diff output for these mode-only-changes isn't very interesting though. Will open a separate ticket for that.

  4. Greg Hurrell 2010-11-12T20:49:39Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets