Fix default pull not to do an unintended Octopus.
The refspecs specified in the .git/remotes/<remote> on the "Pull: " lines are for fetching multiple heads in one go, but most of the time making an Octopus out of them is not what is wanted. Make git-fetch leave the marker in .git/FETCH_HEAD file so that later stages can tell which heads are for merging and which are not. Tom Prince made me realize how stupid the original behaviour was. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -31,6 +31,8 @@ while (<>) {
|
||||
my ($bname, $tname, $gname, $src);
|
||||
chomp;
|
||||
s/^[0-9a-f]* //;
|
||||
next if (/^not-for-merge/);
|
||||
s/^ //;
|
||||
if (s/ of (.*)$//) {
|
||||
$src = $1;
|
||||
} else {
|
||||
@ -86,7 +88,7 @@ for my $src (@src) {
|
||||
$src{$src}{GENERIC});
|
||||
my $this = join(', ', @this);
|
||||
if ($src ne '.') {
|
||||
$this .= " from $src";
|
||||
$this .= " of $src";
|
||||
}
|
||||
push @msg, $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user