diff options
Diffstat (limited to 'git-debrebase')
-rwxr-xr-x | git-debrebase | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git-debrebase b/git-debrebase index c4fabe3..21c0582 100755 --- a/git-debrebase +++ b/git-debrebase @@ -131,9 +131,8 @@ memoize('cfg'); sub get_commit ($) { my ($objid) = @_; - my ($type,$data) = git_cat_file $objid; - die unless $type eq 'commit'; - $data =~ m/(?<=\n)\n/; + my $data = git_cat_file $objid, 'commit'; + $data =~ m/(?<=\n)\n/ or die "$objid ($data) ?"; return ($`,$'); } |