summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-10 22:07:26 -0800
committerJunio C Hamano <junkio@cox.net>2007-03-10 22:07:26 -0800
commited287ab7fa71528e8de288988d1662eebae64002 (patch)
treefa8ab5768bfce68c5923b674c13d514942a3954c /setup.c
parentbd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8 (diff)
parent60fa08ed617dd148a9843bfdef2dfecf2ef60123 (diff)
downloadgit-ed287ab7fa71528e8de288988d1662eebae64002.tar.gz
Merge branch 'maint'
* maint: git.el: Retrieve commit log information from .dotest directory. git.el: Avoid appending a signoff line that is already present. setup_git_directory_gently: fix off-by-one error user-manual: install user manual stylesheet with other web documents user-manual: fix rendering of history diagrams user-manual: fix missing colon in git-show example user-manual: fix inconsistent use of pull and merge user-manual: fix inconsistent example glossary: fix overoptimistic automatic linking of defined terms Documentation: s/seperator/separator/ Adjust reflog filemode in shared repository
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index dda67d268d..a45ea8309a 100644
--- a/setup.c
+++ b/setup.c
@@ -216,7 +216,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
die("Not a git repository: '%s'", gitdirenv);
}
- if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/')
+ if (!getcwd(cwd, sizeof(cwd)-1) || cwd[0] != '/')
die("Unable to read current working directory");
offset = len = strlen(cwd);