summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-03-15 16:15:23 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-03-15 16:15:23 -0800
commitf2cb4004fd5b3ec4b11ad8ee6a374a55e9292732 (patch)
treeec498f9c82262b683ec473aad5144bfc6f332a3c
parentMerge branch 'lt/diff' into next (diff)
parentfix imap-send for OSX (diff)
downloadtgif-f2cb4004fd5b3ec4b11ad8ee6a374a55e9292732.tar.xz
Merge branch 'master' into next
* master: fix imap-send for OSX Let merge set the default strategy.
-rwxr-xr-xgit-pull.sh10
-rw-r--r--imap-send.c4
2 files changed, 5 insertions, 9 deletions
diff --git a/git-pull.sh b/git-pull.sh
index 6caf1aad47..17fda26721 100755
--- a/git-pull.sh
+++ b/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
;;
diff --git a/imap-send.c b/imap-send.c
index 1b38b3af67..e33c78bff2 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -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;