summaryrefslogtreecommitdiff
path: root/git-debrebase
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-14 15:30:36 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-06-16 12:25:49 +0100
commit79c250465c2ed53040e59975d3396ec00825f6e7 (patch)
treee75b17397a8a826af40afdef53ba6f4c8e935a4b /git-debrebase
parent5c0d9155bf5f2e9e945ba2a117074d31e9c4ae80 (diff)
git-debrebase: git-debrebase; get_commit: use new $etype
Diffstat (limited to 'git-debrebase')
-rwxr-xr-xgit-debrebase5
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 ($`,$');
}