1
0
mirror of https://github.com/git/git.git synced 2025-04-08 00:24:03 +00:00

Merge branch 'svn/bad-ref' of git://bogomips.org/git-svn

* 'svn/bad-ref' of git://bogomips.org/git-svn:
  Git/SVN: die when there is no commit metadata
This commit is contained in:
Junio C Hamano 2016-05-10 13:40:57 -07:00
commit e79dd64cbe

@ -97,7 +97,8 @@ sub resolve_local_globs {
"existing: $existing\n",
" globbed: $refname\n";
}
my $u = (::cmt_metadata("$refname"))[0];
my $u = (::cmt_metadata("$refname"))[0] or die
"$refname: no associated commit metadata\n";
$u =~ s!^\Q$url\E(/|$)!! or die
"$refname: '$url' not found in '$u'\n";
if ($pathname ne $u) {