Merge branch 'master' into next

* master:
  convert.c: Fix return type of git_path_check_eol()
  documentation fix: git difftool uses diff tools, not merge tools.
  config.c: Fix a static buffer overwrite bug by avoiding mkpath()
  t5501-*.sh: Fix url passed to clone in setup test
This commit is contained in:
Junio C Hamano
2011-11-21 14:30:53 -08:00
4 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ OPTIONS
-t <tool>::
--tool=<tool>::
Use the diff tool specified by <tool>.
Valid merge tools are:
Valid diff tools are:
araxis, bc3, diffuse, emerge, ecmerge, gvimdiff, kdiff3,
kompare, meld, opendiff, p4merge, tkdiff, vimdiff and xxdiff.
+

View File

@@ -886,12 +886,12 @@ int git_config_early(config_fn_t fn, void *data, const char *repo_config)
home = getenv("HOME");
if (home) {
char *user_config = xstrdup(mkpath("%s/.gitconfig", home));
char buf[PATH_MAX];
char *user_config = mksnpath(buf, sizeof(buf), "%s/.gitconfig", home);
if (!access(user_config, R_OK)) {
ret += git_config_from_file(fn, user_config, data);
found += 1;
}
free(user_config);
}
if (repo_config && !access(repo_config, R_OK)) {

View File

@@ -658,7 +658,7 @@ static enum crlf_action git_path_check_crlf(const char *path, struct git_attr_ch
return CRLF_GUESS;
}
static enum crlf_action git_path_check_eol(const char *path, struct git_attr_check *check)
static enum eol git_path_check_eol(const char *path, struct git_attr_check *check)
{
const char *value = check->value;

View File

@@ -28,7 +28,7 @@ test_expect_success setup '
done
) &&
(
git clone --reference=original "file:///$(pwd)/original" one &&
git clone --reference=original "file://$(pwd)/original" one &&
cd one &&
echo Z >count &&
git add count &&