Merge branch 'fc/trivial'
* fc/trivial: remote: fix status with branch...rebase=preserve fetch: add missing documentation t: trivial whitespace cleanups abspath: trivial style fixmaint
commit
4d1826d1d9
|
@ -37,6 +37,9 @@ or from several repositories at once if <group> is given and
|
||||||
there is a remotes.<group> entry in the configuration file.
|
there is a remotes.<group> entry in the configuration file.
|
||||||
(See linkgit:git-config[1]).
|
(See linkgit:git-config[1]).
|
||||||
|
|
||||||
|
When no remote is specified, by default the `origin` remote will be used,
|
||||||
|
unless there's an upstream branch configured for the current branch.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
||||||
include::fetch-options.txt[]
|
include::fetch-options.txt[]
|
||||||
|
|
|
@ -143,7 +143,7 @@ static const char *real_path_internal(const char *path, int die_on_error)
|
||||||
error_out:
|
error_out:
|
||||||
free(last_elem);
|
free(last_elem);
|
||||||
if (*cwd && chdir(cwd))
|
if (*cwd && chdir(cwd))
|
||||||
die_errno ("Could not change back to '%s'", cwd);
|
die_errno("Could not change back to '%s'", cwd);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,8 +307,13 @@ static int config_read_branches(const char *key, const char *value, void *cb)
|
||||||
space = strchr(value, ' ');
|
space = strchr(value, ' ');
|
||||||
}
|
}
|
||||||
string_list_append(&info->merge, xstrdup(value));
|
string_list_append(&info->merge, xstrdup(value));
|
||||||
} else
|
} else {
|
||||||
info->rebase = git_config_bool(orig_key, value);
|
int v = git_config_maybe_bool(orig_key, value);
|
||||||
|
if (v >= 0)
|
||||||
|
info->rebase = v;
|
||||||
|
else if (!strcmp(value, "preserve"))
|
||||||
|
info->rebase = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ Verify that plumbing commands work when .git is a file
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
objpath() {
|
objpath() {
|
||||||
echo "$1" | sed -e 's|\(..\)|\1/|'
|
echo "$1" | sed -e 's|\(..\)|\1/|'
|
||||||
}
|
}
|
||||||
|
|
||||||
objck() {
|
objck() {
|
||||||
|
@ -19,7 +19,6 @@ objck() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
test_expect_success 'initial setup' '
|
test_expect_success 'initial setup' '
|
||||||
REAL="$(pwd)/.real" &&
|
REAL="$(pwd)/.real" &&
|
||||||
mv .git "$REAL"
|
mv .git "$REAL"
|
||||||
|
|
|
@ -13,7 +13,6 @@ attr_check () {
|
||||||
test_line_count = 0 err
|
test_line_count = 0 err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
mkdir -p a/b/d a/c b &&
|
mkdir -p a/b/d a/c b &&
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue