mirror of
https://github.com/git/git.git
synced 2026-03-16 19:50:09 +01:00
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:
@@ -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.
|
||||
+
|
||||
|
||||
4
config.c
4
config.c
@@ -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)) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user