setup: trivial style fixes
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
5a50085c6b
commit
abf03eeb8e
4
setup.c
4
setup.c
@ -563,7 +563,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
|
|||||||
{
|
{
|
||||||
const char *env_ceiling_dirs = getenv(CEILING_DIRECTORIES_ENVIRONMENT);
|
const char *env_ceiling_dirs = getenv(CEILING_DIRECTORIES_ENVIRONMENT);
|
||||||
struct string_list ceiling_dirs = STRING_LIST_INIT_DUP;
|
struct string_list ceiling_dirs = STRING_LIST_INIT_DUP;
|
||||||
static char cwd[PATH_MAX+1];
|
static char cwd[PATH_MAX + 1];
|
||||||
const char *gitdirenv, *ret;
|
const char *gitdirenv, *ret;
|
||||||
char *gitfile;
|
char *gitfile;
|
||||||
int len, offset, offset_parent, ceil_offset = -1;
|
int len, offset, offset_parent, ceil_offset = -1;
|
||||||
@ -578,7 +578,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
|
|||||||
if (nongit_ok)
|
if (nongit_ok)
|
||||||
*nongit_ok = 0;
|
*nongit_ok = 0;
|
||||||
|
|
||||||
if (!getcwd(cwd, sizeof(cwd)-1))
|
if (!getcwd(cwd, sizeof(cwd) - 1))
|
||||||
die_errno("Unable to read current working directory");
|
die_errno("Unable to read current working directory");
|
||||||
offset = len = strlen(cwd);
|
offset = len = strlen(cwd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user