mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
Merge branch 'master' into next
* master: fix imap-send for OSX Let merge set the default strategy.
This commit is contained in:
commit
f2cb4004fd
2 changed files with 5 additions and 9 deletions
10
git-pull.sh
10
git-pull.sh
|
@ -71,19 +71,15 @@ case "$merge_head" in
|
|||
;;
|
||||
?*' '?*)
|
||||
var=`git repo-config --get pull.octopus`
|
||||
if test '' = "$var"
|
||||
if test -n "$var"
|
||||
then
|
||||
strategy_default_args='-s octopus'
|
||||
else
|
||||
strategy_default_args="-s $var"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
var=`git repo-config --get pull.twohead`
|
||||
if test '' = "$var"
|
||||
then
|
||||
strategy_default_args='-s recursive'
|
||||
else
|
||||
if test -n "$var"
|
||||
then
|
||||
strategy_default_args="-s $var"
|
||||
fi
|
||||
;;
|
||||
|
|
|
@ -372,7 +372,7 @@ free_generic_messages( message_t *msgs )
|
|||
}
|
||||
|
||||
static int
|
||||
vasprintf( char **strp, const char *fmt, va_list ap )
|
||||
git_vasprintf( char **strp, const char *fmt, va_list ap )
|
||||
{
|
||||
int len;
|
||||
char tmp[1024];
|
||||
|
@ -402,7 +402,7 @@ nfsnprintf( char *buf, int blen, const char *fmt, ... )
|
|||
static int
|
||||
nfvasprintf( char **str, const char *fmt, va_list va )
|
||||
{
|
||||
int ret = vasprintf( str, fmt, va );
|
||||
int ret = git_vasprintf( str, fmt, va );
|
||||
if (ret < 0)
|
||||
die( "Fatal: Out of memory\n");
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue