projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ee456
)
git-cvsimport-script: fix branch switching
author
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 4 Jul 2005 13:28:36 +0000
(15:28 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 4 Jul 2005 13:28:36 +0000
(15:28 +0200)
Previous patch broke branch switching.
git-cvsimport-script
patch
|
blob
|
history
diff --git
a/git-cvsimport-script
b/git-cvsimport-script
index
0531af3
..
418c209
100755
(executable)
--- a/
git-cvsimport-script
+++ b/
git-cvsimport-script
@@
-651,9
+651,10
@@
while(<CVS>) {
}
if(($ancestor || $branch) ne $last_branch) {
print "Switching from $last_branch to $branch\n" if $opt_v;
- system("git-read-tree",
"-m","$last_branch","$branch"
);
+ system("git-read-tree",
$branch
);
die "read-tree failed: $?\n" if $?;
}
+ $last_branch = $branch if $branch ne $last_branch;
$state = 9;
} elsif($state == 8) {
$logmsg .= "$_\n";