Handle a revision that only creates a new tag correctly.
Fix an error when a svn revision consists only of the creation of a new tag directory (/tags/this_is_a_tag). Signed-off-by: Yaacov Akiba Slama <ya@slamail.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
109fc2b97b
commit
a16db4f472
@ -648,6 +648,10 @@ sub commit {
|
|||||||
die "Error running git-commit-tree: $?\n" if $?;
|
die "Error running git-commit-tree: $?\n" if $?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (not defined $cid) {
|
||||||
|
$cid = $branches{"/"}{"LAST"};
|
||||||
|
}
|
||||||
|
|
||||||
if(not defined $dest) {
|
if(not defined $dest) {
|
||||||
print "... no known parent\n" if $opt_v;
|
print "... no known parent\n" if $opt_v;
|
||||||
} elsif(not $tag) {
|
} elsif(not $tag) {
|
||||||
@ -664,6 +668,7 @@ sub commit {
|
|||||||
# the tag was 'complex', i.e. did not refer to a "real" revision
|
# the tag was 'complex', i.e. did not refer to a "real" revision
|
||||||
|
|
||||||
$dest =~ tr/_/\./ if $opt_u;
|
$dest =~ tr/_/\./ if $opt_u;
|
||||||
|
$branch = $dest;
|
||||||
|
|
||||||
my $pid = open2($in, $out, 'git-mktag');
|
my $pid = open2($in, $out, 'git-mktag');
|
||||||
print $out ("object $cid\n".
|
print $out ("object $cid\n".
|
||||||
|
Loading…
Reference in New Issue
Block a user