diff options
author | Junio C Hamano <junkio@cox.net> | 2007-03-10 22:07:26 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-10 22:07:26 -0800 |
commit | ed287ab7fa71528e8de288988d1662eebae64002 (patch) | |
tree | fa8ab5768bfce68c5923b674c13d514942a3954c /setup.c | |
parent | bd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8 (diff) | |
parent | 60fa08ed617dd148a9843bfdef2dfecf2ef60123 (diff) | |
download | git-ed287ab7fa71528e8de288988d1662eebae64002.tar.gz git-ed287ab7fa71528e8de288988d1662eebae64002.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |