Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Andre Lureau <marcandre.lureau@gmail.com>2008-03-12 22:54:21 +0300
committerJunio C Hamano <gitster@pobox.com>2008-03-13 07:03:39 +0300
commitc36c5b845e1958bad1b69ee42e3da926de4f948b (patch)
tree3f5d0191d3a303b4d8ce20fef828abb2fef4b897 /git-cvsimport.perl
parent7863c612f402268b5978683f44adad3a7a867613 (diff)
git-cvsimport: fix merging with remote parent branch
commit-tree fails when specifying a remote name (via -r option) and one of the parent branch has a name. Prefixing with "$remote/" fix it. Signed-off-by: Marc-Andre Lureau <marcandre.lureau@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 9516242338..8093996e25 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -730,7 +730,7 @@ sub commit {
next unless $logmsg =~ $rx && $1;
my $mparent = $1 eq 'HEAD' ? $opt_o : $1;
if (my $sha1 = get_headref("$remote/$mparent")) {
- push @commit_args, '-p', $mparent;
+ push @commit_args, '-p', "$remote/$mparent";
print "Merge parent branch: $mparent\n" if $opt_v;
}
}